php compile failing CentOS 5.5
Brought to you by:
mcguyver90,
rtwitty
I have newly installed Centos 5.5 x86-64 box with the default lamp setup. It is running php 5.2.17.
odbtp compiles fine but in [odbtp install dir]/php/ext the make fails looking for a zend_config.h file which does not exist on this machine...even in the newly downloaded source code for php 5.2.17. I have attached some of the output from the make but the errors go on for pages.
Any help surely appreciated as I need to get back to writing and testing code.
first part of the output from a make attempt
Did you run configure in the PHP 5.2.17 source dir?
Thanks Robert for your reply. Yes I did run configure in the php source dir and got this result:
[root@myserver php-5.2.17]# ./configure
...
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
[root@myserver php-5.2.17]#
[root@myserver php-5.2.17]# yum list libxml2
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* addons: mirrors.igsobe.com
* base: mirror.cogentco.com
* epel: mirror.vcu.edu
* extras: mirror.ash.fastserv.com
* ius: mirror.rackspace.com
* updates: mirror.cogentco.com
Installed Packages
libxml2.i386 2.6.26-2.1.2.8.el5_5.1 installed
libxml2.x86_64 2.6.26-2.1.2.8.el5_5.1 installed
[root@myserver php-5.2.17]#
This error does not pertain to odbtp, and I am not sure what needs to be done to resolve it. You may need to consult with another source.
I am trying again to get odbtp working within this environment. To the best of my knowledge I have followed the INSTALL and README and README.64bitOS files in the odbtp source dir and the README in the odbtp source dir/php directory.
I have copied the resultant php_odbtp.so file to the directory indicated in this line from the /etc/httpd/conf/httpd.conf file:
LoadModule odbtp_module /usr/lib64/php/modules/php_odbtp.so
When I start httpd I get this:
[root@myserver ext]# service httpd start
Starting httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/php/modules/php_odbtp.so into server: /usr/lib64/php/modules/php_odbtp.so: undefined symbol: OnUpdateString
[FAILED]
[root@myserver ext]#
Has anyone seen this before and can help me get going?
TIA
Ron