2019年10月

wget https://github.com/alanxz/rabbitmq-c/archive/v0.9.0.tar.gz
mv v0.9.0.tar.gz librabbitmq-c.0.9.0.tar.gz
tar xvf librabbitmq-c.0.9.0.tar.gz
cd rabbitmq-c-0.9.0/
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --target install
cp /usr/local/lib64/librabbitmq.so.4 /usr/local/lib/librabbitmq.so.4

Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib64/pkgconfig/librabbitmq.pc
-- Installing: /usr/local/lib64/librabbitmq.so.4.3.0
-- Installing: /usr/local/lib64/librabbitmq.so.4
-- Installing: /usr/local/lib64/librabbitmq.so
-- Installing: /usr/local/lib64/librabbitmq.a
-- Installing: /usr/local/include/amqp.h
-- Installing: /usr/local/include/amqp_framing.h
-- Installing: /usr/local/include/amqp_tcp_socket.h
-- Installing: /usr/local/include/amqp_ssl_socket.h

cd ~
wget http://pecl.php.net/get/amqp-1.9.4.tgz
tar xvf amqp-1.9.4.tgz
cd amqp-1.9.4
phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local
make && make install