Skip to content

Instantly share code, notes, and snippets.

@TemporaryJam
Last active June 17, 2021 10:19
Show Gist options
  • Save TemporaryJam/6606282 to your computer and use it in GitHub Desktop.
Save TemporaryJam/6606282 to your computer and use it in GitHub Desktop.
How to install the PHP AMQP library
#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!
@hovsep
Copy link

hovsep commented Jan 24, 2018

After autoreconf -i && ./configure && make && sudo make install
I got :
autoreconf: 'configure.ac' or 'configure.in' is required

Copy link

ghost commented Jan 25, 2018

@hovsep Try this instead:

mkdir build && cd build
cmake ..
cmake --build .

@Hemric
Copy link

Hemric commented Oct 11, 2018

Thx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment