20170920PHP用PHPize裝模塊

系統:CentOS 7.3

PHP 7.1.9


PHPIZE命令在

/usr/local/php/bin/phpize


運行出錯

Cannot find config.m4. 

 Make sure that you run '/usr/local/php/bin/phpize' in the top level source d


這是因爲不在模塊解壓包下運行命令了錯的,比較低級的錯誤

網上都說把config0.m4 改成 config.m4

是不對的


後面改M4後還是錯誤

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


安裝M4

wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz

tar -zxvf m4-1.4.18.tar.gz

./configure && make && make install


wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz

tar -zxvf autoconf-2.69.tar.gz

,/configure && make && make install

其實yum裝更簡單

yum -y install autoconf


裝autoconf出錯

make[2]: *** [autoconf.in] Error 2
make[2]:Leavingdirectory `/tmp/autoconf-2.69/bin'
make[1]: *** [all-recursive] Error 1
make[1]:Leavingdirectory `/tmp/autoconf-2.69'
make: *** [all] Error 2

需要安裝

perl


安裝後的模塊的路徑

/usr/local/php/lib/php/extensions/no-debug-zts-20160303/


有引用的文章

http://www.jb51.net/article/46706.htm

http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380147d8c8c4668d4e419ce3b4c413037bfa6663f405a8e906b6075a84a0ae1f66270350123b599c3d71083ac925f75ce786a6459db0144dc42f38a00769f7ecb06bcb81996fbaa61d3f984c4df250480155226c1abd60641&p=81769a4784934eac58edca68505795&newp=9772cd16d9c113ff57ee947e7f4ba5231610db2151d4d4166b82c825d7331b001c3bbfb423241402d8c5796007af425bedf633743c0527a3dda5c91d9fb4c57479da&user=baidu&fm=sc&query=Installing+shared+extensions&qid=e07e48e200046259&p1=5#baidusnap2


http://www.cnblogs.com/painsOnline/p/5162613.html




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章