2017-01-13 1 views
0

저는 웹 개발의 절대 초보자입니다.PHPBrew를 사용하여 PHP 5.6.23 설치에 어려움이 있습니다. (오류 : bz2 모듈에 libbz2> = 1.0.0이 필요합니다.)

는 [내가하고 싶은 어떤]

업데이트를

libbz2 패키지의 버전을 PHPBrew

를 사용하여 PHP 5.6.23 설치 (?)

[환경]

아마존 리눅스 서버 (EC2 인스턴스)

PHPbrew 버전 - 1.22.6은

[이슈]

나는 아래의 명령에 의해 PHP 5.6.23를 설치하려고하면 오류 configure: error: bz2 module requires libbz2 >= 1.0.0가 나온다.

어떻게

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

.phpbrew/빌드/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 

합니까 libbz2 의 버전을 업그레이드하는 아무 생각이 없다 누구든지이 문제를 해결하는 방법을 알고 있습니까?

자세한 내용이 필요하면 의견을 남겨주세요. 조언을 주시면 감사하겠습니다. 미리 감사드립니다!

답변

0

바이너리가 아닌 컴파일시 헤더 파일이 필요합니다. 그래서, 설치하십시오 :

우분투 :

$ sudo apt-get install libbz2-dev 

페도라 :

$ sudo dnf install bzip2-devel