summaryrefslogtreecommitdiff
path: root/db/docs/ref/tcl/faq.html
blob: 244f452cab633a58fe65565c837b0e0079add5c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!--$Id: faq.so,v 11.10 2004/10/05 16:44:35 bostic Exp $-->
<!--Copyright 1997-2006 by Oracle Corporation-->
<!--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><h3><dl><dt>Berkeley DB Reference Guide:<dd>Tcl API</dl></h3></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>
<h3 align=center>Tcl FAQ</h3>
<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-2006 Oracle Corporation - All rights reserved.</font>
</body>
</html>