php bz2扩展安装

 

php bz2扩展安装

添加bz2扩展,编译报错:

configure: error: Please reinstall the BZip2 distribution

 

解决方案:

yum install -y bzip2 bzip2-devel

 

cd /usr/local/src/php-5.6.31/ext/bz2

/srv/php-5.6.31/bin/phpize

./configure --with-php-config=/srv/php-5.6.31/bin/php-config --with-bz2

make

make install

转载于:https://www.cnblogs.com/guiyishanren/p/10987678.html

你可能感兴趣的:(php bz2扩展安装)