# 安装rabbitmq-c ( 最好下载 0.5的,0.6安装可能会报错)

# 版本下载:https://github.com/alanxz/rabbitmq-c/releases/tag/v0.5.0

wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.5.0/rabbitmq-c-0.5.0.tar.gz

tar -zxvf rabbitmq-c-0.5.0.tar.gz

cd rabbitmq-c-0.5.0/

autoreconf -i

./configure --prefix=/usr/local/rabbitmq-c

make

make install

wget http://pecl.php.net/get/amqp-1.8.0.tgz
tar -zxvf amqp-1.8.0.tgz
cd amqp-1.8.0
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c/
make
make install

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-12-07
猜你喜欢
  • 2021-09-17
  • 2021-12-23
  • 2021-11-01
  • 2021-05-01
  • 2022-12-23
  • 2021-09-06
相关资源
相似解决方案