source: gs2-extensions/tdb-edit/trunk/src/README.txt@ 25407

Last change on this file since 25407 was 25407, checked in by jmt12, 12 years ago

Adding notes about tdbserver.conf file

File size: 1.6 KB
Line 
1GS tools that provide similar functionality to the GDBM Edit tools but based on the TDB project (from SAMBA Project). TDB has the same API as GDBM and is designed to support parallel processor.
2
3=== Static Library ===
4
5In certain circumstances you may find that the shared object library provided by default by TDB is not sufficient. For instance, I discovered that on a cluster using automount directories (crucially for the /share/apps directory), I was not able to compile Greenstone and have Apache run because the link to the shared library couldn't be resovled by the Apache user (as it didn't automount the correct directories). I may have been able to alter the Apache configuration to solve this, but I instead decided to compile the TDB library as static. To do so:
6
71. Run enable_tdb.sh as usual
82. Run CASCADE_MAKE.sh as usual
93. Change directory to: <tdb-edit>/packages/tdb-1.2.9/bin/default/common/
104. Execute: ar -cvq libtdb.a *.o
115. Execute: cp libtdb.a <tdb-edit>/linux/lib/
126. Change directory to: <greenstone>/runtime-src/src/recpt/
137. Edit Makefile and modify this line: EXT_LDFLAGS =
148. Edit Makefile and modify this line: EXT_LIBS = $(GSDL_DIR)/ext/tdb-edit/linux/lib/libtdb.a
159. Compile and install Greenstone
1610. Ensure the resulting executable no longer links to libtdb as a shared library: ldd <greenstone>/cgi-bin/linux/library.cgi
17
18=== TDB Server Configuration ===
19
20If using the TDBServer version you need to include a per-collection configuration file called ''tdbserver.conf'' with this information (altered as required):
21
22serverhost localhost
23serverport 8191
24threads 10
Note: See TracBrowser for help on using the repository browser.