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]
不知道能不能帮上楼主的忙,祝早日解决问题:)
[ ]

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.