码迷,mamicode.com
首页 > Web开发 > 详细

PHP 扩展安装

时间:2020-02-22 13:52:55      阅读:74      评论:0      收藏:0      [点我收藏+]

标签:iss   command   you   phpredis   force   tps   hub   issue   get   

以安装Redis扩展为例

wget http://pecl.php.net/get/redis-4.0.0.tgz
tar  -zxvf redis-4.0.0.tgz
cd redis-4.0.0.tgz
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

问题解决

  • libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6

参考连接:https://github.com/phpredis/phpredis/issues/784

git clone https://github.com/phpredis/phpredis.git
cd phpredis/
git checkout php7
rm -f aclocal.m4
phpize
aclocal && libtoolize --force && autoreconf
./configure --with-php-config=/usr/bin/php-config && make
# in my case previous make command installed the redis.so into ~/phpredis/modules/ 
make install #optional

PHP 扩展安装

标签:iss   command   you   phpredis   force   tps   hub   issue   get   

原文地址:https://www.cnblogs.com/michaelluthor/p/12345070.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!