atifazim Posted October 18, 2008 Share Posted October 18, 2008 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.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:1007: 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:1013: 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:1019: `object' undeclared (first use in this function) /usr/local/src/php-5.2.6/ext/libxml/libxml.c:1022: parse error before "TSRMLS_CC" /usr/local/src/php-5.2.6/ext/libxml/libxml.c:1024: parse error before "TSRMLS_CC" /usr/local/src/php-5.2.6/ext/libxml/libxml.c:1033: parse error before "TSRMLS_CC" make: *** [ext/libxml/libxml.lo] Error 1 Looking forward to your replies.Thanks. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 18, 2008 Share Posted October 18, 2008 Did you try giving it the path to libxml? Just of curiosity, why not just use yum? Does it have to be PHP 5.2.6 and not 5.2.0? If you don't care, then just do "sudo yum install php5" Quote Link to comment Share on other sites More sharing options...
atifazim Posted October 19, 2008 Author Share Posted October 19, 2008 How do I give the path to libxml ? and I also tried using yum...it says.. Insufficient server config - no servers found. Aborting. Atif Azim Quote Link to comment Share on other sites More sharing options...
corbin Posted October 19, 2008 Share Posted October 19, 2008 --with-libxml-dir=/path/to/libxml Quote Link to comment Share on other sites More sharing options...
atifazim Posted October 19, 2008 Author Share Posted October 19, 2008 Where does linux install programs if you you dont tell any locations by --prefix=/path? I gave the location of extracted source files of libxml folder, but that did not work either. I tried using php 4.4.9 and that was also giving me errors, this time related to zlib. Screwed up! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.