I'm brand new to DBD XML; working on Debian (unstable) and lamenting the distinct lack of DBD XML packages in the deb archives
Anyway, installing the main libraries and executables was easy using the buildall.sh script. However, I did have problems trying to install the PHP API (which is the component that I'm most interested in). I eventually managed to do it like this:
$ cd $DB_HOME/db-4.3.29/php_db4
$ phpize5
$ ./configure --with-db4=$DB_HOME/install
$ make
$ su
# make install
# exit
$ cd $DB_HOME/dbxml/src/php
$ phpize5
$ ./configure --with-dbxml=DB_HOME/install
*) add -I$DB_HOME/db-4.3.29/php_db4 to DB_HOME/dbxml/src/php/Makefile's includes variable
*) alter '#include "ext/db4/php_db4.h"' to '#include "php_db4.h"' in php_dbxml_int.hpp and php_dbxml_manager.cpp
$ make
# make install
*) add extension=db4.so and extension=dbxml.so to php.ini.
Phew!
I had to make the alterations above because otherwise I got this error message from g++:
In file included from $DB_HOME/dbxml/src/php/php_dbxml.cpp:11:
$DB_HOME/dbxml/src/php/php_dbxml_int.hpp:19:29: error: ext/db4/php_db4.h: No such file or directory
Any ideas why I got this error? Has anyone else ever seen it?
Should I be using mod_db4 for Apache?