~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/docs/ref/tcl/faq.html

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.-->
 
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,b+tree,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><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>
 
15
</td></tr></table>
 
16
<p>
 
17
<h1 align=center>Tcl FAQ</h1>
 
18
<p><ol>
 
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>
 
25
for more information.
 
26
<hr size=1 noshade>
 
27
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
 
28
to build.</b>
 
29
<p>The Berkeley DB Tcl interface requires Tcl version 8.1 or greater.
 
30
<hr size=1 noshade>
 
31
<p><li><b>Berkeley DB was configured using --enable-tcl or --with-tcl and fails
 
32
to build.</b>
 
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.
 
43
<hr size=1 noshade>
 
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.
 
52
</ol>
 
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>
 
54
</td></tr></table>
 
55
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
 
56
</body>
 
57
</html>