I'm trying to get pecl_http - php

I installed the pecl package, but the pecl_http won't install.
Here is my pecl list:
Installed packages, channel pecl.php.net:
=========================================
Package Version State
propro 1.0.0 stable
raphf 1.1.0 stable
uploadprogress 1.0.3.1 stable
I'm trying to get the pecl_http on the list but it is not working.
What am I doing wrong?
I am working on Ubuntu. I installed pecl_http
with the following command:
sudo pecl install pecl_http
I have a pecl_http-2.5.5.tgz file and the files in the .tgz package are written in C.
I have also tried sudo pecl install http, without success.
Can any one tell me what I'm doing wrong?

Returning to pecl_http v1 helped me. I found the solution from the question http.so loaded but http_get undefined. Advancing to PHP 7 didn't seem practical due to the presumed avalanche of modifications needed to other software.
sudo pecl uninstall pecl_http
sudo pecl install pecl_http-1.7.6

Related

XAMPP intl problem on mac Catalina version10.15.1

I have tried installing using pecl command but still getting the same issue. Enabled the extension in the php.ini but again of new use
Unable to load dynamic library '/usr/local/Cellar/php70-intl/7.0.27_24/intl.so'
I am trying to install CakePHP. PHP version is 7.2 and intl present on mac /usr/local/Cellar/php70-intl . Please help me with the same. I have tried almost everything.
brew install icu4c
root$: sudo pecl update-channels
root$: sudo pecl install intl
tried everything mentioned above but still of no use

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.

Can't upgrade SSH2 with pecl

My current version of pecl SSH2 is 0.12 and I am trying to upgrade it to 0.13.
I tried both:
pecl upgrade ssh2-0.13
and
pecl install ssh2-0.13
and got
ERROR: pecl.php.net/ssh2 not installed
Not much feedback, what else can I try?
using php 5.6 and PEAR 1.9.5
I am using CentOS and following helped me to upgrade, might help you too
yum install gcc php-devel php-pear libssh2 libssh2-devel
// or in ubuntu(deb) sudo apt-get install ...............
pecl install -f ssh2
Actually i removed my old version and did above. And i installed all the packages that require. Please make sure you have installed all the required packages (gcc, php-devel, php-pear, libssh2, libssh2-devel) and then try to install or upgrade again.

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