php readline擴充套件安裝

Cookie_1030發表於2017-09-22

新增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

 

 

 

相關文章