搜尋
首頁php教程php手册AIX5.3上编译安装PHP5.2.8问题

AIX5.3上编译安装PHP5.2.8问题

Jun 13, 2016 am 09:53 AM
安裝方法編譯解決問題




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]

不知道能不能帮上楼主的忙,祝早日解决问题:)

[ ]

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

WebStorm Mac版

WebStorm Mac版

好用的JavaScript開發工具

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

MantisBT

MantisBT

Mantis是一個易於部署的基於Web的缺陷追蹤工具,用於幫助產品缺陷追蹤。它需要PHP、MySQL和一個Web伺服器。請查看我們的演示和託管服務。