Berkeley DB XML

dbxml-2.5.16.tar.gz

./buildall.sh --enable-java

../include/xqilla/framework/XPath2MemoryManager.hpp:90:11: エラー: ‘ptrdiff_t’ does not name a type

	The problem is is solved by adding
	#include <cstddef>
	right after
	#include <assert.h>
	in XPath2MemoryManager.hpp
	
ln -s dbxml-2.5.16/install/bin/dbxml /usr/local/bin/dbxml

Interactive

$ ledit dbxml

dbxml> createContainer sample.xmldb
Creating node storage container

dbxml> addDocument doc1 'bar'
Document added, name = doc1

dbxml> addDocument doc1 'Good Morning'
stdin:3: putDocument failed, Error: Document exists: doc1

dbxml> addDocument doc2 'Good Morning'
Document added, name = doc2

dbxml> query 'collection("sample.xmldb")/foo'
2 objects returned for eager expression 'collection("sampleb.xmldb")/foo'


dbxml> print
bar
Good Morning

dbxml> quit
PHP

cd dbxml-2.5.16/dbxml/src/php
phpize
./configure --with-dbxml=/path/to/dbxml/install
make
Python

ii python-bsddb3 4.8.3-3ubuntu1 Python interface for Berkeley DB

cd dbxml-2.5.16/dbxml/src/python
sudo python setup.py install

Perl

cd dbxml-2.5.16/dbxml/src/perl
perl Makefile.PL
make
C++

c++ -o helloWorld helloWorld.cpp  \
	-I$(DBXML)/dbxml/include \
	-I$(DBXML)/dbxml/include/dbxml \
	-I$(DBXML)/db-4.8.26/build_unix \
	-L$(DBXML)/install/lib \
	-ldbxml
	
Java

dbxml-2.5.16/install/lib/db.jar
dbxml-2.5.16/install/lib/dbxml.jar
result_aa

outarea_aa
outarea_bb
outarea_cc
outarea_dd
outarea_ee
outarea_ff
outarea_gg
outarea_hh

Return

May/09/2023 AM 08:15