dbTalk Databases Forums  

Installing PHP API for DBD XML

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Installing PHP API for DBD XML in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cursusadmin (Offline)
Junior Member
 
Posts: 2
Join Date: Apr 2006

Default Installing PHP API for DBD XML - 04-25-2006 , 07:10 AM






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?

Reply With Quote
  #2  
Old   
cursusadmin (Offline)
Junior Member
 
Posts: 2
Join Date: Apr 2006

Default 04-25-2006 , 07:18 AM






Does anyone know if the two files I've created:

$ ls /usr/lib/php5/20051025/
.....
-rwxr-xr-x 1 root root 64K Apr 25 11:32 db4.so
-rwxr-xr-x 1 root root 271K Apr 25 11:50 dbxml.so
.....

work independently of the rest of DBD XML? Or do they link to the other libraries compiled as a result of running buildall.sh?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.