簡體   English   中英

難以使用PHPBrew安裝php 5.6.23(錯誤:bz2模塊需要libbz2> = 1.0.0)

[英]Difficulty installing php 5.6.23 using PHPBrew (Error: bz2 module requires libbz2 >= 1.0.0)

我是Web開發的絕對初學者。

[我想做什么]

使用PHPBrew安裝PHP 5.6.23

更新libbz2包的版本(?)

[環境]

亞馬遜linux服務器(EC2實例)

PHPbrew版本 - 1.22.6

[問題]

當我嘗試通過以下命令安裝PHP 5.6.23時,錯誤configure: error: bz2 module requires libbz2 >= 1.0.0

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

phpbrew install 5.6.23 +default +mysql +openssl=$(brew --prefix openssl)

.phpbrew /編譯/ PHP - 23年6月5日/ 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

Fedora的:

$ sudo dnf install bzip2-devel

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM