Linux下給PHP安裝amqp擴充 linux 安裝php7 php安裝 centos php安

WBOY
發布: 2016-07-29 08:50:13
原創
1390 人瀏覽過

本文介紹了在Linux下給PHP安裝amqp擴充的過程,有需要的朋友可以關註一下。

安裝librabbitmq-c和rabbitmq-codegen

# 下载0-9-1版的rabbitmq-c
git clone git://github.com/alanxz/rabbitmq-c.git
cd 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
登入後複製

安裝pecl擴充

#下载最新的amqp扩展
wget http://pecl.php.net/get/amqp-1.0.9.tgz
tar xvzf amqp-1.0.9.tgz
cd amqp-1.0.9 && phpize
./configure --with-amqp && make && sudo make install
登入後複製

記得在php.ini加入amqp擴充:

extension=amqp.so
登入後複製

安裝過程中可能會遇到的問題

解決辦法,安裝libtool,ubuntu:

configure.ac: installing ./install-sh
configure.ac: installing ./missing
configure.ac:34: installing ./config.guess
configure.ac:34: installing ./config.sub
Makefile.am:3: Libtool library used but LIBTOOL is undefined
Makefile.am:3:
Makefile.am:3: The usual way to define LIBTOOL is to add AC_PROG_LIBTOOL
Makefile.am:3: to configure.ac and run aclocal and autoconf again.
Makefile.am: C objects in subdir but AM_PROG_CC_C_O not in configure.ac
Makefile.am: installing ./compile
Makefile.am: installing ./depcomp
autoreconf: automake failed with exit status: 1
登入後複製

其他系統類似

2、如果還有其他問題,歡迎給我留言,我補上

使用

sudo apt-get install libtool
登入後複製

以上就介紹了Linux下給PHP安裝amqp擴展,包含了Linux,php安裝方面的內容,希望對PHP教學有興趣的朋友有幫助。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!