Questions tagged [pecl]
PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.
830
questions
0
votes
0
answers
15
views
Cannot download "pecl/mongodb" (Connection to `ssl://pecl.php.net:443' failed: )
I am seeing this issue after running docker-compose up command. I am new to docker that is why, I have no idea what's going on here and how to fix this issue.enter image description here
I executed ...
0
votes
0
answers
37
views
issue trying to use pecl to install mongodb extension
I tried installing PHP MongoDB Extension with "pecl install mongodb" and i got an error message saying
"No releases available for package "pecl.php.net/mongodb"
i have tried ...
1
vote
2
answers
154
views
Install zip module on php 8.2 amazon linux elastic beanstalk
I'm pretty sure the zip extension was included by default in the amazon managed php elb image.
The usual way to do this was adding a config file like this to .ebextensions
packages:
yum:
...
0
votes
0
answers
80
views
Fixing a fatal error with PECL/PEAR with multiple php versions
I need to install a PHP package using PECL on a server. However, I keep getting the following error while executing any pecl or pear command.
PHP Fatal error: Array and string offset access syntax ...
-1
votes
1
answer
130
views
Unable to load dynamic library 'imagick.so' - dlopen(imagick.so, 0x0009): symbol not found in flat namespace '_AcquireAlignedMemory'
I'm already desperate, I know there are a lot of similar questions but no solution helped me, so I'll try a new question.
I'm trying to activate Imagick but I get this error
Warning: PHP Startup: ...
1
vote
0
answers
31
views
MongoDB extesion not installing using sudo pecl install mongodb
I'm trying to install mongodb extenstion in MacOS (13.4.1) Chip (Apple M1 Pro) having Xampp installed with php verison PHP 7.4.1 using sudo pecl install mongodb but it's giving below error
fatal error:...
0
votes
0
answers
80
views
Error when installing Imagemagick 3.7.0 in XAMPP for Linux 8.2.4 (Lubuntu 22.04.2 LTS)
I have installed the latest Xampp, and I 'm trying to install ImageMagick according to this https://gist.github.com/meleu/8ac2b8606964c6d1f2f508727e2e5f64
However, when I give this command to the ...
0
votes
1
answer
2k
views
Why is the Redis extension not working with PHP 8.2? [duplicate]
I am using the latest stable version of PHP 8.2.4 with XAMPP on Windows 11 x64. I want to install the Redis extension in the PHP ext folder. However, after installing the DLL file and registering it ...
1
vote
3
answers
511
views
No releases available for package "pecl.php.net/imagick". OpenSSL Error?
I apologise if this is a duplicate, but none of the already posted question's answers helped me.
Recently, the Dockerfile for our php5.6-apache doesn't want to build anymore. The line where it fails ...
1
vote
3
answers
2k
views
PECL install no releases available
RUN pecl install mongodb-1.4.2
Resulted in this output:
RUN pecl install mongodb-1.4.2 && docker-php-ext-enable mongodb:
No releases available for package "pecl.php.net/mongodb"
...
0
votes
1
answer
154
views
Error pecl install oci8-2.2.0 - Try to build container on apple with chip silicon (M2)
I pass the day on this problem, the docker file work perfectly on windows.
When I launch docker-compose up I have this error :
`=> ERROR [web 11/54] RUN echo 'instantclient,/usr/lib/oracle/21.1/...
0
votes
0
answers
63
views
Cannot Install Ssh2 on centos 7 with php version 5.6
I'm trying to install Ssh2 on centos7 with php version 5.6.40 but i get this error :
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl
channel-update pecl.php.net&...
0
votes
0
answers
222
views
Pecl having trouble installing php redis in docker
I have set up a Docker environment for my symfony application.
One problem I'm facing is everytime docker runs docker-php-ext-install redis or pecl install redis I'll get error that says:
#0 2.161 #3 /...
0
votes
1
answer
75
views
PHP5.6 - "The php-devel package is required for use of this command" but "Package php-devel-5.4.16-48.el7.x86_64 already installed and latest version"
Docker container running remi php 5.6 at /opt/rh/rh-php56
Trying to run a pecl package (ssh2) install but output says
Can't find PHP headers in /opt/rh/rh-php56/root/usr/include/php
The php-devel ...
0
votes
0
answers
26
views
Command "pecl install mongodb" throw me : No releases available for package "pecl.php.net/mongodb"
I have to install mongodb extension into my ubuntu server (20.04.5).
I try this command pecl install mongodb but it throws me this error No releases available for package "pecl.php.net/mongodb&...
0
votes
0
answers
222
views
How is it possible to install openssl and curl extension for PHP8 on mac?
I installed PHP 8 with:
brew install php
Then I edited php.ini to enable curl and openssl:
extension=curl
extension=openssl
I use the default extension dir
extension_dir = "/opt/homebrew/lib/...
0
votes
1
answer
234
views
How to install the PHP Decimal extension on non-Windows OS
PHP Decimal seems to be the only good alternative to bcmath. The name refers to both a wrapper library as well as a PHP extension. The extension itself depends on libmpdec.
Dependencies
PHP 7
...
0
votes
1
answer
558
views
I get an error installing Xdebug on Alpine docker. What am I doing wrong?
I'm trying to install Xdebug on Alpine 3.17, but the different solutions I found with Google didn't work out. I'm a bit lost on this.
I try to use PECL to install Xdebug as mentioned here.
But I only ...
0
votes
1
answer
212
views
How do I build the YAML PECL extension for Windows when there isn't already a DLL available?
I have PHP 8.2.4 installed on my Windows machine and I would like to enable the YAML extension. The instructions that I have followed in the past are to download the the Windows DLL from the PECL ...
1
vote
0
answers
1k
views
Unable to install Redis module with PHP 8.x version on Linux
Deployment of one of the application in our environment started failing while trying to install PHP Redis module on Amazon Linux. The environment has PHP 8 installed. I am getting the below error.
---&...
1
vote
1
answer
653
views
PHP 8.1 with Xdebug - symbol not found in flat namespace '_zend_get_parameters_array_ex'
System Information
macOS 13.2.1 (22D68) (Intel Processor)
PHP versions installed via homebrew
Xdebug installed via pecl
Xdebug Version 3.2.0 (should be supported -> see https://xdebug.org/docs/...
1
vote
0
answers
156
views
Problem Installing gnupg php extension mac m1
So i am trying to install gnupg on my mac m1
I found this question and tried to follow this
Install PHP gnupg using PECL on MAC/MAMP 10.8.4
Doesn't seem to work for me, when i run pecl install gnupg
...
2
votes
0
answers
2k
views
Fail pecl channel-update pecl.php.net
My develop environment
CentOS: 7.9 (Using FROM centos:7.9.2009 From DockerHub)
PHP: 7.4.33
Apache: 2.4.55
I'm trying to create Docker container by using Dockerfile. With the above environment, I ...
1
vote
1
answer
389
views
Install PECL mongodb php driver extension in a multiphp fpm environment of CentOS 7
I am trying to install pecl mongodb php driver extension in a multi php (fpm) environment of a CentOS (release 7.5) server. I have three PHP versions configured as:
systemctl enable php72-php-fpm (...
0
votes
1
answer
115
views
Debian 11 PHP db2_connect() not working / PECL installed ibm_db2
I have taken the following steps and I am using Debian 11.
I've installed the CLI Driver for DB/2 from the IBM Website
I've installed the ibm_db2 package via pecl for PHP PECL
I've edited the PHP.INI ...
2
votes
1
answer
502
views
Docker PHP - PECL install fail to detect system type when using heredoc and bash but works with shell set using SHELL command
I have this simple Dockerfile-fail file
$ cat Dockerfile-fail
# syntax=docker/dockerfile:1
FROM php:8.1.11-fpm-buster
RUN <<...
3
votes
1
answer
479
views
pecl install memcached - Can't find ZLIB headers under "/opt/homebrew/opt/zlib/include"
I have installed PHP, zlib and memcached using Homebrew on a Mac with Apple silicon. I am trying to install the memcached extension for PHP using
sudo pecl install memcached
When it prompts me for ...
0
votes
0
answers
335
views
PECL fails to install Xdebug on PHP 8.1 because it thinks I'm on PHP version 7.4
I've searched far and wide, tried everything but I can't get to install Xdebug on PHP 8.1
I've got multiple PHP versions installed via homebrew, when I switch to PHP 8.1 and try to install Xdebug I ...
0
votes
1
answer
492
views
When installing php oauth package: Couldn't find pcre.h, try installing the libpcre development/headers package
I need to install oauth (pecl install oauth) for a 3rd party package. I have both pcre & pcre2 installed using Homebrew but still oauth complains about not finding pcre.h.
I'm on macOS Ventura 13....
-1
votes
1
answer
352
views
installing grpc extension for php on ubuntu failed [closed]
command: sudo pecl install grpc
I tried installing grpc extension for php on ubuntu with the above command. The installation started then got stuck at some point, after which, it failed and outputted ...
0
votes
1
answer
458
views
/php_intl.h:33:10: fatal error: 'unicode/ubrk.h' file not found
I'm trying to install intl on Mac os Ventura 13.0.1 with XAMPP 8.1.12 with pecl with this command:
sudo /Applications/XAMPP/xamppfiles/bin/pecl install intl
i cannot use directly pecl because i've ...
0
votes
1
answer
180
views
Error installing Xdebug via pecl on Mac - Unable to create temp directory
On Mac Monterey, while trying to install xdebug via pecl as is now required with Homebrew, I get the following error:
downloading xdebug-3.2.0.tgz ...
Starting to download xdebug-3.2.0.tgz (245,775 ...
0
votes
0
answers
220
views
Installing Xdebug 3 to debug PHP code inside a Docker container
I need to enable the possibility to debug my PHP code inside a Docker.
The idea is to install Xdebug 3 in the PHP container.
Please note that I've built the Docker image starting from CentoOS 7 where ...
2
votes
1
answer
171
views
PHP APCu monotonic TTL clock change - please confirm my understanding of timestamps
We use PHP 7.4 and recently our build went from APCu version 5.1.21 to 5.1.22, with changelog noted here
We noticed that the internal timestamps for the cache object have changed from a prior UNIX ...
0
votes
1
answer
173
views
MAMP ext mailparse is not loading, not sure if installed correctly PHP 7.1.33
i started to work on web application which uses PHP 7.1.33 - which i did set up in MAMP, but I have problem to get extension mailparse - which I tried and probably installed through PECL commands.
But ...
0
votes
2
answers
599
views
Laravel Vapor Docker installation of ImageMagick and it's PHP-extension gives error
I am trying to get ImageMagick and it's PHP extension working on a docker image
Docker Image:
FROM laravelphp/vapor:php81
RUN apk add imagemagick imagemagick-dev
RUN pecl install imagick
RUN docker-...
0
votes
1
answer
482
views
DigitalOcean - Ubuntu php8.1 - pecl install grpc g++: fatal error: Killed signal terminated program cc1plus - ERROR: `make' failed
Can't get pecl to install grpc.
Command
sudo pecl install grpc
Error
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:226: src/core/ext/filters/...
1
vote
0
answers
245
views
The packages are installed with pecl but are not displayed in phpinfo()
I use centos and php 7.3.2 and Nginx web server
I have installed several packages using pecl. They are all installed successfully.
When I run command "pecl list" or "php -m", I see ...
0
votes
0
answers
118
views
When I compile PECL imagick using phpize, I get the error "undefined macro: _m4_divert_diversion
When I download the source of PECL imagick and compile it using phpize
I get an error "undefined macro: _m4_divert_diversion".
CentOS6.7
PHP7.3
autoconf 2.71 → 2.69
m4 1.4.13 → 1.4.18
...
2
votes
0
answers
115
views
pecl.php.net/packages.php services unavailability
yes | pecl install mcrypt-1.0.3
Package "mcrypt" Version "1.0.3" does not have REST xml available
install failed
pecl.php.net/packages.php services unavailability
1
vote
2
answers
1k
views
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `ssl://pecl.php.net:443' failed: Operation timed out)
From today 2022-08-11, the pecl channel-update pecl.php.net command is not working.
It start working and after a few seconds returns an error Cannot retrieve channel.xml for channel "pecl.php.net&...
0
votes
0
answers
270
views
Differents between CURL and Guzzle,Pecl-http and Http-request2
What are Differents between CURL and Guzzle,Pecl-http and Http-request2 ?
I want to connect to one site with api,I always use curl and it works for me.can I use Guzzle or Pecl-http or Http-request2 ...
1
vote
1
answer
822
views
cannot enable redis-zstd in php:8.0.2-fpm-buster
In a container based on "php:8.0.2-fpm-buster" image, I run
pecl install zstd
echo "extension=zstd.so" > /path/to/php.ini
then run
pecl install redis
enable zstd compression ...
2
votes
2
answers
2k
views
Docker-Compose, Dockerfile and Build Image Problems (php-fpm + pecl + xdebug)
I'm new to Docker and want to build the image myself (nginx + php-fpm + mariadb + phpadmin).
I want to have Xdebug so I've a Dockerfile to customize the php-fpm image.
And then I run into a problem (...
0
votes
1
answer
509
views
Where does ssh2 for php need to be installed?
Trying to install ssh2 onto a litespeed server and using the traditional install methods are not working for me. I have successfully installed ssh2 into the /etc/php/cli and it works from the command ...
0
votes
0
answers
1k
views
Problem installing pecl install sqlsrv on macbook M1
I need to install sqlsrv-5.8.1 on a MacBook with an M1.
I installed:
php7.3
httpd
openssl
And when I want to install sqlsrv via the command pecl install sqlsrv-5.8.1 I have an error:
ERROR: 'make' ...
0
votes
0
answers
1k
views
Has anyone successfully built PHP 7.4 extensions on MacOS 12.4 using PECL?
I'm using homebrew to install PHP on macOS 12.4 (Monterey), and having difficulty getting the suggested PECL extension install method to work. I've installed php 7.4 on macOS:
brew install php@7.4
...
0
votes
1
answer
437
views
Unable to install libmcrypt-2.5.8.tar.gz and mycrypt-1.0.4.gz on RHEL 8
I am trying to install mycrypt-1.0.4 on RHEL 8 and it says mycrypt.h error Reinstall libmcrypt.
So, I am trying to install libmcrypt and I copied libmcrypt-2.5.8.tar.gz into tmp folder. Now when I ran ...
1
vote
2
answers
6k
views
Install MongoDB PHP Extension for PHP 8.1 (Debian)
sorry if there is a duplicate question for this but I'm trying to set this up for hours now and it just doesn't work.
I have a Debian 11 server with "KeyHelp" installed on it (little brother ...
1
vote
0
answers
171
views
PHP PECL Trader Extension trader_cdl3linestrike($open, $high, $low, $close)
Unfortunately, the documentation for the Trader Extension is very marginal: https://www.php.net/manual/en/function.trader-cdl3linestrike.php
I would expect a true or false answer, but I don't care.
...