How to install the OpenCensus extension with PECL on PHP - php

Following the instructions (here: https://github.com/census-instrumentation/opencensus-php) I am unable to install the OpenCensus extension for PHP using PECL.
I have tried installing other PECL extensions, which worked fine.
I have also tried doing this from a VPN.
The install steps I tried are:
Install the opencensus/opencensus package using composer:
$ composer require opencensus/opencensus:~0.2
IMPORTANT: Please ensure your version is >= 0.2.0. There is a potential security vulnerability in < 0.2.0.
Install the opencensus extension from PECL:
$ pecl install opencensus-alpha
The error I get is:
No releases available for package "pecl.php.net/opencensus" install failed"
See also: https://prnt.sc/nnt5er

Related

Pecl install sqlsrv returns No releases available for package

While installing sqlsrv module for PHP7 i'm getting following error -
No releases available for package "pecl.php.net/sqlsrv
Command used
sudo pecl install sqlsrv
Any idea how to resolve this issue?
Same problem here... Solved installing modules as root this way (Ubuntu 16.04):
wget http://pecl.php.net/get/sqlsrv-4.3.0.tgz
pear install sqlsrv-4.3.0.tgz
wget http://pecl.php.net/get/pdo_sqlsrv-4.3.0.tgz
pear install pdo_sqlsrv-4.3.0.tgz
You can check latests available versions here: http://pecl.php.net/package-search.php?pkg_name=sqlsrv&bool=AND&submit=Search
And check if php modules are enabled after installation:
php -m | grep sqlsrv
Try to install a certain version that you know exists:
$ pecl install sqlsrv-4.3.0
Also try to clear the cache:
$ pear clear-cache
For corporate proxy users, you might just need to tell pear to use your proxy.
pear config-set http_proxy http://proxy.example.com:8080
Sometimes pecl.php.net is not available or down. In this case pecl install may show "no releases available".
Just for information.

Installation of Magento 2 error: php ext-gd is required

I am trying to install magento/product-community-edition 2.1.3 in cloud9 (Ubuntu 14.04.3 LTS) with PHP 7.0.15
I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for magento/product-community-edition 2.1.3 -> satisfiable by magento/product-community-edition[2.1.3].
- magento/product-community-edition 2.1.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
To enable extensions, verify that they are enabled in those .ini files:
- /home/ubuntu/.phpbrew/php/php-7.0.15/etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
I tried to do the following installation on install php70-gd on ubuntu but I still get the same error afterwards.
How will I successfully install magento 2?
Use following command to install the gd extension:
sudo apt-get install php5.6-gd
it will work for PHP version 5.6
If you are using any other verison of PHP, replace 5.6 by that like:
sudo apt-get install php7.0-gd
for PHP 7.0
run
sudo apt-get install php5.6-gd
or
sudo apt-get install phpX.X-gd
then check your .ini files:
To enable extensions, verify that they are enabled in your .ini
files:
- /etc/php/7.0/cli/php.ini
change
;extension=...
to extension=... for each dependency you need.
If the error is still there, check the PHP version on your localhost/server and the PHP version that you are using with your Magento.
Be aware that all versions of PHP are not compatible to Magento.
More informations: http://devdocs.magento.com/guides/v2.0/comp-mgr/trouble/cman/php-version.html
Good luck!
PS: If you got the same issue for ext-mcrypt, ext-dom or anything else, you will have to follow the same process and then re-run the composer installation.
sudo apt-get install php7.0-dom
sudo apt-get install php7.0-mcrypt
sudo apt-get install php7.0-curl

How to install "pthreads" on OSX, PHP 5.5.30

I couldn't find any step-by-step guide how to install this thing on OSX. And I don't want to recompile PHP, if that's possible.
Is there simply a package that I can install from somewhere that will just enable pthreads? I tried with:
pecl install pthreads
pecl/pthreads requires PHP (version >= 7.0.0RC5), installed version is 5.5.30
No valid packages found
Update php to version >= 7.0.0RC5 or install another version of pthreads
pecl install pthreads-2.0.10
Also pthreads will require that php is configurated with flag --enable-maintainer-zts. It is set on php compilation.
./configure ... --enable-maintainer-zts ...
make
make install

pecl install zmq not found

Have XAMPP on Windows, php 5.5.19, PEAR 1.10.0dev2
I tried to install zmq, buto not found the package in pecl:
pecl install zmq or pecl install zmq-beta :
No releases available for package pecl.php.net/zmq
No releases available for package pecl.php.net/zmq-beta
https://pecl.php.net/package/zmq
It looks like there are DLLs available for download from zmq's package page on pecl - https://pecl.php.net/package/zmq so you might not need to install via pecl afterall...

pecl install intl gives no releases available?

I'm using mac and xampp and trying to install php package intl for using phpdocumentor as required.
I follow this instruction to install:
Installing Intl package on your mac with xampp
But when I was trying to install intl with pecl, it gave me error:
No releases available for package "pecl.php.net/intl"
install failed
I have searched for solution and try to upgrade pear/pecl but it turned to "unsupported protocol". I also tried to changes /PEAR/REST.php as one solution but it also didn't work. Did anyone face the same problem and solved. Can you help me T_T
Probably some problem with old channels and/or old protocols.
First look at the log (as cweiske said).
pecl -vvv install intl
Then you can simply try to upgrade PEAR, PECL and update channels
pear upgrade
pecl upgrade
pecl channel-update
And install intl again
pecl install intl

Categories