1<!--$Id: faq.so,v 11.10 2004/10/05 16:44:35 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
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,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
12<table width="100%"><tr valign=top>
13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Tcl API</dl></b></td>
14<td align=right><a href="/tcl/error.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/ext/mod.html"><img src="/images/next.gif" alt="Next"></a>
15</td></tr></table>
16<p align=center><b>Tcl FAQ</b></p>
17<ol>
18<p><li><b>I have several versions of Tcl installed. How do I configure
19Berkeley DB to use a particular version?</b>
20<p>To compile the Tcl interface with a particular version of Tcl, use the
21--with-tcl option to specify the Tcl installation directory that
22contains the tclConfig.sh file.  See
23<a href="/ref/build_unix/flags.html">Changing compile or load
24options</a> for more information.</p>
25<hr size=1 noshade>
26<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
27to build.</b>
28<p>The Berkeley DB Tcl interface requires Tcl version 8.4 or greater.</p>
29<hr size=1 noshade>
30<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
31to build.</b>
32<p>If the Tcl installation was moved after it was configured and installed,
33try reconfiguring and reinstalling Tcl.</p>
34<p>Also, some systems do not search for shared libraries by default, or do
35not search for shared libraries named the way the Tcl installation names
36them, or are searching for a different kind of library than those in
37your Tcl installation.  For example, Linux systems often require linking
38"libtcl.a" to "libtcl#.#.a", whereas AIX systems often require adding the
39"-brtl" flag to the linker.  A simpler solution that almost always works
40on all systems is to create a link from "libtcl.#.#.a" or "libtcl.so"
41(or whatever you happen to have) to "libtcl.a" and reconfigure.</p>
42<hr size=1 noshade>
43<p><li><b>Loading the Berkeley DB library into Tcl on AIX causes a core dump.</b>
44<p>In some versions of Tcl, the "tclConfig.sh" autoconfiguration script
45created by the Tcl installation does not work properly under AIX, and
46you may have to modify values in the tclConfig.sh file to in order to
47load the Berkeley DB library into Tcl.  Specifically, the TCL_LIB_SPEC
48variable should contain sufficient linker flags to find and link against
49the installed libtcl library.  In some circumstances, the tclConfig.sh
50file built by Tcl does not.</p>
51</ol>
52<table width="100%"><tr><td><br></td><td align=right><a href="/tcl/error.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/ext/mod.html"><img src="/images/next.gif" alt="Next"></a>
53</td></tr></table>
54<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
55</body>
56</html>
57