Fail pecl channel-update pecl.php.net - php

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 tried to install Xdebug:
RUN pecl install xdebug-3.1.6
But received message
No releases available for package "example.net/xdebug" install failed.
On internet, they said I need to update pecl with this command:
pecl channel-update pecl.php.net
But it failed and I received the following error message:
I can't understand that suggestion Trying channel "example.net" over https:// instead.
Should I put some options to use https://? Is there such an option?
I really tired to search the solution about this, there's no solution.
Someone who experienced that error, please give me some advice to solve... Thanks.

Related

I am struggling grpc php extension installation on my ubuntu 20.04 server by using whm terminal

I am using https://github.com/grpc/grpc repo to install grpc. But after make when I fire the "make install" command then I get error This is the error in the terminal I get.
I don't know how to use cmake and and bazel to install this.
Please help. I am stuck in this from 2 days.
Thank You!

How can I configure wordpress to run auto updates from admin when my server is running php7

It seems that the php ssh2 / libssh2 is not available in php7 so easily. I am trying to install it and just cant find any information online.
If I run this:
sudo apt-get install libssh2–1-dev libssh2–1
I get these errors:
E: Unable to locate package libssh2–1-dev
E: Unable to locate package libssh2–1
It seems the way is to download the pecl package and make install manually however, I cant get passed the first bit of installing libssh2??
Any help appreciated.
I tried this tutorial https://www.linkedin.com/pulse/solution-how-install-ssh2-php7-extension-sanjog-kumar-dash
Don't copy the code. Type it manually. Looks like the dash in the command sudo apt-get install libssh2–1-dev libssh2–1 is not the right one.

gnupg for PHP on OSX

I'm trying to set up gnupg for use in PHP on my mac.
I have tried following the directions found at the following links:
http://measure9.varkel.net/2013/10/building-gnupg-for-php-5-5-on-osx/
Install PHP gnupg using PECL on MAC/MAMP 10.8.4
What I seem to be running into with both is this message:
checking for gpgme_check_version in -lgpgme... no
configure: error: wrong gpgme lib version or lib not found
I see this when executing the './configure' command.
I have installed gpgme using Homebrew.
I'm a bit stuck as I've tried everything I can come up with and haven't had any luck.
I am running PHP 5.6.7 on OSX 10.10.2 using MAMP Pro.
Thank you in advance for any help you can provide.
EDIT:
My original question was unclear, so I'll try again.
I am trying to install gnupg for use in PHP in my dev environment, which is a macbook using MAMP.
I fist installed gpgme and gnpug using Homebrew, both with no issues.
Then I attempted to install gnupg using pecl via the following command
sudo pecl install gnupg
And I end up with this error message
configure: error: wrong gpgme lib version or lib not found
ERROR: `/private/tmp/pear/install/gnupg/configure' failed
I have tried editing my path with no success, adding usr/local/include and usr/local/lib, where gpgme.h and libgpgme.a files can be found. I see no change in the error message.
EDIT 2:
I believe that gpgme is being installed correctly and pecl is able to find it. I install it using the following command
brew install gpgme
If I then run the pecl command to install gnupg, I get the error message above.
Now, if I execute the brew command to uninstall gpgme
brew uninstall gpgme
I see the following error message when trying to install gnupg with pecl
configure: error: Please reinstall the gpgme distribution
ERROR: `/private/tmp/pear/temp/gnupg/configure' failed
which seems to indicate that the library is installing and being found, but it's an incorrect version.
I am unable to find any information on what version is required for pecl to install gnupg.
EDIT 3:
Looking at the terminal a little more, I see that it's failing to find a specific function (gpgme_check_version) in the lib file.
checking for gpgme_check_version in -lgpgme... no
configure: error: wrong gpgme lib version or lib not found
ERROR: `/private/tmp/pear/temp/gnupg/configure' failed
I'm not entirely sure what happened, but I believe my installation of autoconf was somehow compromised.
What ended up solving my problem was using brew to uninstall autoconf and gpgme, then using brew to reinstall both packages.

OS X install libcurl / Solr installation

I set up the default Apache Server with PHP on OS X Yosemite, installed pear, installed Solr with brew (brew install solr) and am now trying to install the Solr extension for PHP with PECL using
pecl install solr
This gives me the error
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
ERROR: `/private/tmp/pear/install/solr/configure --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed
However, the curl command is available in Terminal. Did I give the wrong path when asked during the installation
Enable Solr Debugging (Compiles solr in debug mode) [no] :
libcURL install prefix [/usr] :
libxml2 install prefix [/usr] :
and, if yes, how do I find the right path? Or do I need to install curl again and, if yes, what is the best way and can I do this using homebrew?
I will probably get the same problem with libxml2, won't I?
Thanks guys!
The problem was solved by installing the OS X developer tools.
You can do so via Terminal by executing
xcode-select --install
I hope this may help somebody having the same problem!
I found this helpful to get past the initial error: https://chowdera.com/2020/11/202011132244396707.html
Sumamry:
brew install curl
brew install libxml2
brew install openssl
brew install libidn2
brew install brotli
export LDFLAGS="-L/usr/local/opt/libidn2/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/brotli/lib"
pecl install solr
inputs at pause:
yes
/usr/local/opt/curl
/usr/local/opt/libxml2
hopefully at this point you see Build process completed successfully

Please provide the prefix of GraphicsMagick installation [autodetect]

I'm trying to install the PHP API for GraphicsMagick using this pecl command:
sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1
during installation I am asked this question:
Please provide the prefix of GraphicsMagick installation [autodetect]
I have no idea how to answer this and if I just press enter for auto detection the install fails.
checking whether to enable the gmagick extension... yes, shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/tmp/pear/temp/gmagick/configure --with-gmagick' failed
I am using ubuntu server, does anyone know how I can install this program?
Try installing the libgraphicsmagick1-dev package (sudo apt-get install libgraphicsmagick1-dev). That should give you GraphicsMagick-config in /usr/bin.
When trying to figure out what package is needed for a particular file running apt-file search <filename> helps. So in this case apt-file search GraphicsMagick-config which on Ubuntu Server 11.04 gives:
% apt-file search GraphicsMagick-config
libgraphicsmagick1-dev: /usr/bin/GraphicsMagick-config
libgraphicsmagick1-dev: /usr/share/man/man1/GraphicsMagick-config.1.gz
On OS X simply run
brew install GraphicsMagick
and then rerun the pecl installation command

Categories