Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/255.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用PHPBrew安装PHP5.6.23有困难(错误:bz2模块需要libbz2>;=1.0.0)_Php_Amazon Ec2_Phpbrew - Fatal编程技术网

使用PHPBrew安装PHP5.6.23有困难(错误:bz2模块需要libbz2>;=1.0.0)

使用PHPBrew安装PHP5.6.23有困难(错误:bz2模块需要libbz2>;=1.0.0),php,amazon-ec2,phpbrew,Php,Amazon Ec2,Phpbrew,我是Web开发的绝对初学者 [我想做什么] 使用PHPBrew安装PHP5.6.23 更新libbz2软件包(?)的版本 [环境] Amazon linux服务器(EC2实例) PHPbrew版本-1.22.6 [问题] 当我尝试通过下面的命令安装PHP5.6.23时,会出现错误configure:error:bz2模块要求libbz2>=1.0.0 我不知道如何升级libbz2的版本 phpbrew安装5.6.23+默认+mysql+openssl=$(brew——前缀openssl) .ph

我是Web开发的绝对初学者

[我想做什么]

使用PHPBrew安装PHP5.6.23

更新libbz2软件包(?)的版本

[环境]

Amazon linux服务器(EC2实例)

PHPbrew版本-1.22.6

[问题]

当我尝试通过下面的命令安装PHP5.6.23时,会出现错误
configure:error:bz2模块要求libbz2>=1.0.0

我不知道如何升级libbz2的版本

phpbrew安装5.6.23+默认+mysql+openssl=$(brew——前缀openssl)

.phpbrew/build/php-5.6.23/build.log

checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.8
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0
有人知道如何解决这个问题吗

如果您需要更多信息,请留下您的评论。
如有任何建议,将不胜感激。提前谢谢

编译时需要的是头文件,而不是二进制文件。因此,请安装:

Ubuntu:

$ sudo apt-get install libbz2-dev
软呢帽:

$ sudo dnf install bzip2-devel

编译时需要的是头文件,而不是二进制文件。因此,请安装:

Ubuntu:

$ sudo apt-get install libbz2-dev
软呢帽:

$ sudo dnf install bzip2-devel