0I8Berkeley DB: Building the Test Suite: FAQ[P2

Building the Test Suite: FAQ


    

  1. MBerkeley DB was configured using --enable-test, but it fails to build.

    CUnfortunately, there is no single location in which to find the TclLinclude file () or the Tcl library (libtcl.a) on different platforms.?DB configuration does not do anything special to locate the Tcl=include file, and adds "-ltcl -lm" to attempt to find the Tcllibrary.EIf your Tcl include file is not in one of the standard places checkedby your compiler,Fthen you will have to add ADDCPPFLAGS and/or ADDLIBS and ADDLDFLAGS to!your environment and reconfigure. For example:

    @See Building for UNIX platformsfor more information.

    JYou may also need to add additional libraries in order to get the Tcl testAsuite to load. Linux systems often require linking "libtcl.a" toG"libtcl#.#.a" or adding "-ldl" to the load line. Solaris systems oftenFrequire adding "-lsocket" and sometimes "-lnsl -ldl" to the load line.HThese changes are most simply done by editing the Makefile in your builddirectory explicitly.

    ,Alternatively, you can download Tcl from theFScriptics Corporation web site.Fbuild it locally, and simply add "-I../../tcl.7.4" to the CFLAGS line,>and "-L../../tcl.7.4" to the load line for the dbtest program,#in your build directory's Makefile.D(Note, if you download a different version than 7.4, use the version$number from the one you downloaded!)


    

  2. HBerkeley DB was built using --enable-test, but I get an error message*about "TCL_LIBRARY" when I run dbtest.

    ?If the Tcl library with which you loaded was not located in theB"/usr/local/lib" directory, you will need to set the "TCL_LIBRARY"Benvironment variable to the library directory below the path where,it was found, e.g., "../../tcl.7.4/library".


    

  3. FBerkeley DB was built using --enable-test, but it fails to pass thetest suite.

    HCheck to make sure that TESTDIR is not on a NFS mounted filesystem. TheNBerkeley DB architecture does not support placing the shared memory regions onFremote filesystems, e.g., the Network File System (NFS) and the AndrewHFile System (AFS). For this reason, the shared memory regions (normallyHlocated in a database home directory) must reside on a local filesystem.

ÿÿ