系统: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