說明:在 CentOS 5 環境以 SOURCE RPM 方式升級 PHP。
系統環境:
// 下載 source rpm
http://oss.oracle.com/projects/php/d...-1.el5.src.rpm
// 安裝需要的相依性套件
yum install bzip2-devel curl-devel db4-devel expat-devel gmp-devel aspell-devel httpd-devel libjpeg-devel libpng-devel pam-devel openssl-devel sqlite-devel libtool krb5-devel libc-client-devel cyrus-sasl-devel openldap-devel mysql-devel postgresql-devel unixODBC-devel net-snmp-devel libxslt-devel gd-devel freetype-devel
//
//
F.A.Q
雖然已安裝 autoconf 2.59-12,但編譯時仍出現錯誤:You need autoconf version 2.13 or newer installed?
Ans: 這在編譯 PHP 時算是常見的錯誤,請安裝 autoconf213 套件,如下指令:
# yum install autoconf213 Then before you build set the environment variable to tell the build process which autoconf to use # export PHP_AUTOCONF="/usr/bin/autoconf-2.13"