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

猜你喜欢

转载自blog.csdn.net/cookie_1030/article/details/78062829
今日推荐