PHP 5.2.8 compilation and installation on AIX5.3
Solution
Compile and install php on AIX, and pass./configure smoothly, but an error is reported in make,
Error message: make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1.
The file is not found in the ext/pcre/pcrelib directory, but there is a pcre_chartables.loT file. Copy pcre_chartables.loT cp to the pcre_chartables.lo file. When you make the file again, an error message is displayed:
Make: *** [ext/pcre/pcrelib/pcre_compile.lo] Error 1
Check again in this directory, the directory does not have this file.
Dizzy. Which of the following heroes can help solve the problem !!!!!!!!!!!!
D8888D 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. c o ext/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 encoded 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 you can help me copy the code. Thank you!
[]
D8888D reply content
Oh yeah, I finally made it.
I don't know whether the landlord and I have a fan error or a./configure problem. I don't need to talk about it anymore. 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
With1_dir =/opt/freeware
Withpngdir =/opt/freeware
Withfreetypedir =/opt/freeware
Copy the code. Note the following:
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 = Response
I don't know if I can help the landlord. I wish to solve the problem as soon as possible :)
[]