gpt4 book ai didi

php - 使用 PHPBrew 安装 php 5.6.23 时遇到困难(错误 : bz2 module requires libbz2 >= 1. 0.0)

转载 作者:行者123 更新时间:2023-12-05 07:45:27 26 4
gpt4 key购买 nike

我是网络开发的绝对初学者。

[我想做什么]

使用 PHPBrew 安装 PHP 5.6.23

更新libbz2包的版本(?)

[环境]

Amazon linux 服务器(EC2 实例)

PHPbrew 版本 - 1.22.6

[问题]

当我尝试通过以下命令安装 PHP 5.6.23 时,出现错误 configure: error: bz2 module requires libbz2 >= 1.0.0

不知道如何升级libbz2的版本

phpbrew 安装 5.6.23 +default +mysql +openssl=$(brew --prefix 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

关于php - 使用 PHPBrew 安装 php 5.6.23 时遇到困难(错误 : bz2 module requires libbz2 >= 1. 0.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41631473/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com