faq.html   [plain text]


<!--$Id: faq.so,v 11.10 2004/10/05 16:44:35 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Tcl FAQ</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Tcl API</dl></b></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>
</td></tr></table>
<p align=center><b>Tcl FAQ</b></p>
<ol>
<p><li><b>I have several versions of Tcl installed. How do I configure
Berkeley DB to use a particular version?</b>
<p>To compile the Tcl interface with a particular version of Tcl, use the
--with-tcl option to specify the Tcl installation directory that
contains the tclConfig.sh file.  See
<a href="../../ref/build_unix/flags.html">Changing compile or load
options</a> for more information.</p>
<hr size=1 noshade>
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
to build.</b>
<p>The Berkeley DB Tcl interface requires Tcl version 8.4 or greater.</p>
<hr size=1 noshade>
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
to build.</b>
<p>If the Tcl installation was moved after it was configured and installed,
try reconfiguring and reinstalling Tcl.</p>
<p>Also, some systems do not search for shared libraries by default, or do
not search for shared libraries named the way the Tcl installation names
them, or are searching for a different kind of library than those in
your Tcl installation.  For example, Linux systems often require linking
"libtcl.a" to "libtcl#.#.a", whereas AIX systems often require adding the
"-brtl" flag to the linker.  A simpler solution that almost always works
on all systems is to create a link from "libtcl.#.#.a" or "libtcl.so"
(or whatever you happen to have) to "libtcl.a" and reconfigure.</p>
<hr size=1 noshade>
<p><li><b>Loading the Berkeley DB library into Tcl on AIX causes a core dump.</b>
<p>In some versions of Tcl, the "tclConfig.sh" autoconfiguration script
created by the Tcl installation does not work properly under AIX, and
you may have to modify values in the tclConfig.sh file to in order to
load the Berkeley DB library into Tcl.  Specifically, the TCL_LIB_SPEC
variable should contain sufficient linker flags to find and link against
the installed libtcl library.  In some circumstances, the tclConfig.sh
file built by Tcl does not.</p>
</ol>
<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>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>