CentOS 5.5 升級至 PHP 5.3

    版本為 15:00, 20 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    說明:在 CentOS 5 環境以 SOURCE RPM 方式升級 PHP。

    系統環境:

    • CentOS 5.5 32bit
    • PHP 5.1.6 (預設安裝)

    步驟開始

    編譯 PHP 5.3 的 SOURCE RPM

    // 下載 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" 
    
    Powered by MindTouch Core