Changeset 25252

Show
Ignore:
Timestamp:
23.03.2012 12:22:42 (8 years ago)
Author:
jmt12
Message:

Adding notes about statically compiling TDB library should it be necessary

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/tdb-edit/trunk/src/README.txt

    r24043 r25252  
    11GS 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