lsphp(5) compilation error

#1
I'm trying to compile lsphp (php 5.2.3) om WestHost's VPS.

I'm following the instructions from http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi

I downloaded the patched PHP package from http://download.medialayer.net/public/

after ./configure I run ./make but get immediately 10's of compilation errors.
It starts with:

Code:
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:38:27: libxml/parser.h: No such file or directory
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:39:36: libxml/parserInternals.h: No such file or directory
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:40:25: libxml/tree.h: No such file or directory
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:41:24: libxml/uri.h: No such file or directory
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:42:29: libxml/xmlerror.h: No such file or directory
/home/ictfbe/php-5.2.3/ext/libxml/libxml.c:43:28: libxml/xmlsave.h: No such file or directory
In file included from /home/ictfbe/php-5.2.3/ext/libxml/libxml.c:48:
/home/ictfbe/php-5.2.3/ext/libxml/php_libxml.h:64: error: syntax error before "xmlNodePtr"
etc.

The strange thing is that xml2 is installed and ./configure does find /usr/local/bin/xml2-config

Any pointers on how to get to the next step?
Alternatively a pre-compiled lsphp (5.2.x) (on Linux 2.6.9-42.0.3.ELsmp) would do the trick as well :)

cheers
--eric.
 

mistwang

LiteSpeed Staff
#2
You can try to locate the required header files under /usr/local/ or /usr/local/include, if they are not available you need to reinstall libxml.
 
#3
I've located the header files in /usr/local/include/libxml2.

So, i'm passing --includedir=/usr/local/include/libxml2, but that doesn't change the result.

Which flags should I pass to ./configure in order to force /usr/local/include/libxml2 to be included and passed to gcc as -I?

Reading INSTALL didn't help me a lot.

Thanks.

--Eric.
 
#4
Forgot to mention it, but in the meantime I just edited the Makefil and added an extra -I in the INCLUDES.

Its compiling now, but the correct way is to do this thru ./configure and not touching the Makefile after ./configure

-- Eric.
 
Top