昨天下午開始升級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' ,是簡單了點,夠用就好,以後不夠用再加吧。