Last active
June 17, 2021 10:19
-
-
Save TemporaryJam/6606282 to your computer and use it in GitHub Desktop.
How to install the PHP AMQP library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install cmake | |
yum install cmake | |
#install libtool | |
yum install libtool | |
#install a perl pkgconfig requirement | |
yum install perl-ExtUtils-PkgConfig.noarch | |
#get rabbitmq-c library | |
# Download the rabbitmq-c library @ version 0-9-1 | |
git clone git://github.com/alanxz/rabbitmq-c.git /tmp/rabbitmq-c | |
cd /tmp/rabbitmq-c | |
# Enable and update the codegen git submodule | |
git submodule init | |
git submodule update | |
# Configure, compile and install | |
autoreconf -i && ./configure && make && sudo make install | |
#install the pecl extension | |
pecl install amqp | |
#add the extension to the php.d conf directory so it gets loaded | |
echo "extension=amqp.so" > /etc/php.d/amqp.ini | |
#restart php-fpm | |
service php-fpm restart | |
#win! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After autoreconf -i && ./configure && make && sudo make install
I got :
autoreconf: 'configure.ac' or 'configure.in' is required