I try to install amqp php extension on my mac using brew.
Enviroment: MacOS Catalina 10.15.6,
Homebrew 2.5.0, PHP 7.4.10, rabbitmq 3.8.8, rabbitmq-c 0.10.0
I got following messages after executing: pecl install amqp
checking for pkg-config... /usr/local/bin/pkg-config
checking for amqp using pkg-config... configure: error: librabbitmq not found
ERROR: `/private/tmp/pear/temp/amqp/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-librabbitmq-dir' failed
Any ideas how to solve this problem.
For anyone with similar problem.
For the question:
Set the path to librabbitmq install prefix [autodetect] :
do not leave empty answer (autodetect).
In my case, setting this value to
/usr/local/Cellar/rabbitmq-c/0.10.0
do the job.
Related
I'm using Mac High Sierra. I want to install PHP 7.2 with the openssl extension. I have openssl installed
localhost:php-7.2.1 davea$ brew install openssl
Warning: openssl 1.0.2n is already installed
However, when I run the PHP configure command (I'm building it from source), it eventually dies with the below error
localhost:php-7.2.1 davea$ ./configure --with-gmp=/usr/local --with-openssl --with-openssl-dir=/opt/local/bin
...
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for RAND_egd... no
checking for pkg-config... /usr/local/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
How do I tell PHP where that library is or rather how do I install it somewhere on my Mac?
ps - The reason I'm not installing PHP with homebrew is because homebrew does not support installation of PHP with GMP, which I need.
I'm trying to install Imagick as its required for an extension I want to use for my project.
I've tried to install it on my ArchLinux like:
pacman -S imagemagick
pecl install imagick
The pecl install ends up throwing me the following error:
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... It exists
found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 7.0.7 Q16 HDRI
checking for MagickWand.h or magick-wand.h header... configure: error: Unable to find MagickWand.h or magick-wand.h header
ERROR: `/tmp/pear/temp/imagick/configure --with-php-config=/usr/bin/php-config --with-imagick' failed
Any help as to how to get Imagick installed on my ArchLinux would be great.
Thanks in advance!
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.
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
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