php readline扩展安装
添加readline扩展,编译报错:
configure: error: Please reinstall libedit - I cannot find readline.h
解决方案:
yum install -y readline-devel
wget http://thrysoee.dk/editline/libedit-20170329-3.1.tar.gz
tar zxvf libedit-20170329-3.1.tar.gz
./configure
make
make install
cd /usr/local/src/php-5.6.31/ext/readline
/srv/php-5.6.31/bin/phpize
./configure --with-php-config=/srv/php-5.6.31/bin/php-config --with-readline
make
make install
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: PHP readline 模块安装
- 下一篇: 使用php编写在线浏览日志文件的小应用