AIX5.3上編譯安裝PHP5.2.8問題
解決方法
在AIX上編譯安裝php,./configure順利通過,但是在make時報錯,
錯誤提示:make:*** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1。
到ext/pcre/pcrelib目錄中查看,沒有此文件,但是有一個pcre_chartables.loT文件,將pcre_chartables.loT cp一份pcre_chartables.lo文件,再次make時,又提示錯誤信息:
make:*** [ext/pcre/pcrelib/pcre_compile.lo] Error 1
再次到此目錄中查看,目錄沒有此文件。
暈呀,哪位大俠幫忙解決一下呀!!!!!!!!!!!!
D8888D回貼內容
和你遇到同樣的問題,不過我是在AIX6.1下安裝的 IBM Http Server with Apache 1.3
全部報錯信息如下 /bin/sh /tmp/install/php/php5.2.8/libtool silent preservedupdeps mode=compile gcc Iext/libxml/ I/tmp/install/php/php5.2.8/ext/libxml/ DPHP_ATOM_INC I/tmp/install/php/php5.2.8/include I/tmp/install/php/php5.2.8/main I/tmp/install/php/php5.2.8 I/opt/freeware/include/libxml2 I/tmp/install/php/php5.2.8/ext/date/lib I/tmp/install/php/php5.2.8/TSRM I/tmp/install/php/php5.2.8/Zend I/usr/include g O2 c /tmp/install/php/php5.2.8/ext/libxml/libxml.c o ext/libxml/libxml.lo/bin/sh /tmp/install/php/php5.2.8/libtool silent preservedupdeps mode=compile gcc I/tmp/install/php/php5.2.8/ext/pcre/pcrelib Iext/pcre/ I/tmp/install/php/php5.2.8/ext/pcre/ DPHP_ATOM_INC I/tmp/install/php/php5.2.8/include I/tmp/install/php/php5.2.8/main I/tmp/install/php/php5.2.8 I/opt/freeware/include/libxml2 I/tmp/install/php/php5.2.8/ext/date/lib I/tmp/install/php/php5.2.8/TSRM I/tmp/install/php/php5.2.8/Zend I/usr/include g O2 c /tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_chartables.c o ext/pcre/pcrelib/pcre_chartables.loIn file included from /tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_chartables.c:25:/tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_internal.h:976: error: expected specifierqualifierlist before 'BOOL'/tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_internal.h:1027: error: expected specifierqualifierlist before 'BOOL'/tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_internal.h:1137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php__pcre_is_newline'/tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_internal.h:1143: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php__pcre_was_newline'/tmp/install/php/php5.2.8/ext/pcre/pcrelib/pcre_internal.h:1145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php__pcre_xclass'make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1
復制代碼希望高手幫忙看下,多謝啦!
[ ]
D8888D回貼內容
oh yeah 我終於 make 成功了
不知道樓主和我是不是范一個錯誤 其實還是./configure的問題, 廢話不多說了,上源碼: export PATH=/opt/freeware/bin:$PATH
./configure
prefix=/usr/local
withconfigfilepath=/usr/HTTPServer/conf/php.ini
enableshared
disablestatic
enablemaintainerzts
enablecalendar
enablebcmath
enablesockets
enablezip
withgd
withzlib
withlibxmldir=/opt/freeware
withzlibdir=/opt/freeware
withbz2
withgettext=/opt/freeware
withjpegdir=/opt/freeware
withpngdir=/opt/freeware
withfreetypedir=/opt/freeware
復制代碼注意這裡面
prefix=/usr/local 這個目錄指向的是你php文件夾所在的目錄,我的目錄是/usr/local/php5.2.6所以在這裡prefix=/usr/local
我是根據國外的一篇文章配置的php5,網址如下。
[url=http://koo.fi/tech/2008/12/08/installingphp5onaixusingibmhttpserver/]鏈接標記http://koo.fi/tech/2008/12/08/installingphp5onaixusingibmhttpserver/[/url]
不知道能不能幫上樓主的忙,祝早日解決問題:)
[ ]