PHP Installation error
Posted: Sat Oct 18, 2008 1:33 pm
Hello,
I am installing PHP 5.2.6 on a redhat 9. First it gave me an error of not having libxml2.6.11 or higher when running ./configure. I downloaded and installed that.Now the make command is giving me this error. (partial error displayed)
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
parse error before "else"
/usr/local/src/php-5.2.6/ext/libxml/libxml.c: At top level:
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
parse error before "TSRMLS_DC"
/usr/local/src/php-5.2.6/ext/libxml/libxml.c: In function `php_libxml_node_decrement_resource':
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
`object' undeclared (first use in this function)
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
parse error before "TSRMLS_CC"
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
parse error before "TSRMLS_CC"
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
parse error before "TSRMLS_CC"
make: *** [ext/libxml/libxml.lo] Error 1
Looking forward to your replies.Thanks.
Atif Azim
I am installing PHP 5.2.6 on a redhat 9. First it gave me an error of not having libxml2.6.11 or higher when running ./configure. I downloaded and installed that.Now the make command is giving me this error. (partial error displayed)
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
/usr/local/src/php-5.2.6/ext/libxml/libxml.c: At top level:
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
/usr/local/src/php-5.2.6/ext/libxml/libxml.c: In function `php_libxml_node_decrement_resource':
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
/usr/local/src/php-5.2.6/ext/libxml/libxml.c
make: *** [ext/libxml/libxml.lo] Error 1
Looking forward to your replies.Thanks.
Atif Azim