1
<!--$Id: faq.so,v 11.5 2001/03/27 15:20:58 bostic Exp $-->
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
6
<title>Berkeley DB Reference Guide: Tcl FAQ</title>
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
11
<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Tcl API</dl></h3></td>
14
<td align=right><a href="../../ref/tcl/error.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/sendmail/intro.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Tcl FAQ</h1>
19
<p><li><b>I have several versions of Tcl installed. How do I configure
20
Berkeley DB to use a particular version?</b>
21
<p>To compile the Tcl interface with a particular version of Tcl, use the
22
--with-tcl option to specify the Tcl installation directory that contains
23
the tclConfig.sh file.
24
<p>See <a href="../../ref/build_unix/flags.html">Changing compile or load options</a>
27
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
29
<p>The Berkeley DB Tcl interface requires Tcl version 8.1 or greater.
31
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
33
<p>If the Tcl installation was moved after it was configured and installed,
34
try reconfiguring and reinstalling Tcl.
35
<p>Also, some systems do not search for shared libraries by default, or do
36
not search for shared libraries named the way the Tcl installation names
37
them, or are searching for a different kind of library than those in
38
your Tcl installation. For example, Linux systems often require linking
39
"libtcl.a" to "libtcl#.#.a", whereas AIX systems often require adding the
40
"-brtl" flag to the linker. A simpler solution that almost always works
41
on all systems is to create a link from "libtcl.#.#.a" or "libtcl.so"
42
(or whatever you happen to have) to "libtcl.a" and reconfigure.
44
<p><li><b>Loading the Berkeley DB library into Tcl on AIX causes a core dump.</b>
45
<p>In some versions of Tcl, the "tclConfig.sh" autoconfiguration script
46
created by the Tcl installation does not work properly under AIX. To
47
build a working Berkeley DB Tcl API when this happens, use the "--enable-tcl"
48
flag to configure Berkeley DB (rather than "--with-tcl"). In addition, you
49
will have to specify any necessary include and library paths and linker
50
flags needed to build with Tcl by setting the CPPFLAGS, LIBS, and LDFLAGS
51
environment variables before running configure.
53
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/tcl/error.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/sendmail/intro.html"><img src="../../images/next.gif" alt="Next"></a>
55
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>