PHP升級記

來源:互聯網
上載者:User
昨天下午開始升級PHP到4.3.10,make install時到了install PEAR....就出錯,出個“Pro*C .....”的資訊,懷疑oracle問題,於是去掉--with-oci8,問題依舊,上網查,沒結果,搞了半天,突然想起以前為了編譯proc程式方便,設了一個$MAKE環境變數,於是查Makefile中install-pear,下面果然有$(MAKE)字樣,unset MAKE,一切OK,浪費了一個下午。

今天用jpgraph時說當前PHP編譯不支援TTF,於是查configure --help,上網搜尋,下載freetype-devel,調參數,編譯了N次,phpinfo()中顯示配置參數都對了,可GD欄下死活不出“FreeType Support”字樣,最後抱著姑且一試的態度,make之前先make clean,居然好了,@%@#$!*@#$#$%^!,浪費一個上午。

以前是rpm封裝的,配置參數一大串,在這裡備份一下以備不時之需:

'./configure' '--prefix=/usr' '--enable-pic' '--disable-rpath' '--with-layout=GNU' '--with-apxs' '--libdir=/usr/lib/php4' '--datadir=/usr/share/php' '--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-track-vars' '--enable-memory-limit' '--enable-bcmath' '--with-iconv' '--with-pcre-regex=/usr' '--enable-sigchild' '--with-xml' '--with-expat-dir=/usr' '--with-openssl' '--enable-ftp=shared' '--enable-exif=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-shmop=shared' '--with-unixODBC=shared' '--with-mysql=shared,/usr' '--with-ldap=shared' '--with-pgsql=shared' '--with-gettext=shared' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-oci8=shared,/usr/local/oracle/product/8i' '--with-swf=shared,/home/troels/rpm/BUILD/php-4.2.2/swflib' '--enable-sockets=shared' '--with-gmp=shared' '--with-dom=shared' '--with-qtdom=shared,/usr/lib/qt-2.3.1' '--enable-wddx' '--with-curl=shared' '--enable-apc=shared' '--with-ming=shared' '--with-imlib=shared' '--with-recode=shared' '--enable-calendar=shared' '--enable-posix=shared' '--with-mcal=shared,/usr' '--with-interbase=shared,/usr' '--with-zlib' '--with-mm'。

目前參數是'./configure' '--with-apxs' '--with-gd' '--with-oci8=shared' '--with-zlib' '--with-jpeg-dir' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-ttf' '--enable-ftp' ,是簡單了點,夠用就好,以後不夠用再加吧。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.