Home >Backend Development >PHP Tutorial >Problems in compiling and installing PHP5.2.8 on AIX5.3_PHP Tutorial

Problems in compiling and installing PHP5.2.8 on AIX5.3_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:52:07891browse




Problems with compiling and installing PHP5.2.8 on AIX5.3
Solution
After compiling and installing php on AIX, ./configure passed successfully, but an error occurred during make,
Error message: make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1.
Check in the ext/pcre/pcrelib directory. There is no such file, but there is a pcre_chartables.loT file. Copy pcre_chartables.loT to a copy of the pcre_chartables.lo file. When making again, the error message is prompted:
make: *** [ext/pcre/pcrelib/pcre_compile.lo] Error 1
Check the directory again, and there is no such file in the directory.
I'm dizzy, can any hero help me solve this problem? ! ! ! ! ! ! ! ! ! ! !


D8888D’s reply content
I encountered the same problem as you, but I installed IBM Http Server with Apache 1.3 under AIX6.1
All error messages are as follows/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
I hope someone can help me copy the code, thank you!

[ ]
D8888D’s reply content
oh yeah I finally made it successfully
I don’t know if the poster and I made a mistake. In fact, it’s still a problem with ./configure. Without further ado, here’s the source code: 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
Copy the code and pay attention here
prefix=/usr/local This directory points to the directory where your php folder is located. My directory is /usr/local/php5.2.6, so here prefix=/usr/local

I configured php5 based on a foreign article, the URL is as follows.

[url=http://koo.fi/tech/2008/12/08/installingphp5onaixusingibmhttpserver/]Link tag http://koo.fi/tech/2008/12/08/installingphp5onaixusingibmhttpserver/[/url]

I don’t know if I can help the original poster. I hope the problem can be solved soon:)

[ ]

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632526.htmlTechArticleSolution to the problem of compiling and installing PHP5.2.8 on AIX5.3 Compiling and installing php on AIX, ./configure passed smoothly , but an error is reported when making, error message: make: *** [ext/pcre/pcrelib/pcre_cha...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn