|
Posted by Kees Pijnenburg on 09/13/05 15:48
Hi all,
I've been reading through the lasts months of postings in this
(and some other) newsgroups to find a solution to my PHP problem.
The configuration I use is as follows:
- SuSE v8.2
- Apache 2.0.54
- MySQL 4.1.14
- PHP 5.0.5
Installing the first 3 parts was not a problem at all. Both
Apache and MySQL start just fine. Before I could perform a proper
'configure' of PHP I had to update libxml2, add libxml2-devel and
python but then the following command worked without any errors:
./configure --with-apxs2=/usr/local/httpd/bin/apxs
--with-mysql=/usr
[note: the previous is, of course, a single line]
After this, I used 'make' to compile the stuff and this is where
things go wrong. The following error message is shown:
=============[ start of make-output ]============================
vpsuse:/usr/local/php # make
/bin/sh /usr/local/php/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/standard/
-I/usr/local/php/ext/standard/ -DPHP_ATOM_INC
-I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php
-I/usr/include/mysql -I/usr/local/php/ext/xml/expat
-I/usr/local/php/TSRM -I/usr/local/php/Zend -g -O2
-prefer-non-pic -c /usr/local/php/ext/standard/info.c -o
ext/standard/info.lo
/bin/sh /usr/local/php/libtool --silent --preserve-dup-deps
--mode=compile gcc -I/usr/local/httpd/include -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -I/usr/local/httpd/include
-I/usr/local/httpd/include -Isapi/apache2handler/
-I/usr/local/php/sapi/apache2handler/ -DPHP_ATOM_INC
-I/usr/local/php/include -I/usr/local/php/main -I/usr/local/php
-I/usr/include/mysql -I/usr/local/php/ext/xml/expat
-I/usr/local/php/TSRM -I/usr/local/php/Zend -g -O2
-prefer-non-pic -c
/usr/local/php/sapi/apache2handler/sapi_apache2.c -o
sapi/apache2handler/sapi_apache2.lo
In file included from
/usr/local/php/sapi/apache2handler/sapi_apache2.c:39:
/usr/local/httpd/include/ap_config.h:229:16: os.h: No such file
or directory
In file included from /usr/local/httpd/include/util_filter.h:23,
from
/usr/local/php/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/httpd.h:42:16: os.h: No
such file or directory
make: *** [sapi/apache2handler/sapi_apache2.lo]
Error 1
=============[ end of make-output ]==============================
Now, there is indeed no os.h file in the directory
/usr/local/httpd/include but there are a number of them in
subdirectories below /usr/local/httpd/os (for various OSses).
Copying the one from the 'unix' directory does not help.
If I search for 'os.h' and 'no such file or directory' in
combination with php and such, I have seen similar error reports
but no solutions. On the other hand, I can't believe that my
combination of software is so unique, that it would give a lot of
problems.
Any suggestion where things go wrong and how to solve them?????
Regards,
Kees
Kees Pijnenburg - P.O. Box 84 5374 ZG Schayk The Netherlands
kpijnenb@xs4all.nl
[Back to original message]
|