summaryrefslogtreecommitdiff
path: root/db/docs/ref/tcl/intro.html
diff options
context:
space:
mode:
Diffstat (limited to 'db/docs/ref/tcl/intro.html')
-rw-r--r--db/docs/ref/tcl/intro.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/db/docs/ref/tcl/intro.html b/db/docs/ref/tcl/intro.html
index e88c08daf..6ce5795cb 100644
--- a/db/docs/ref/tcl/intro.html
+++ b/db/docs/ref/tcl/intro.html
@@ -1,5 +1,5 @@
-<!--$Id: intro.so,v 11.23 2004/10/05 16:44:35 bostic Exp $-->
-<!--Copyright 1997-2004 by Sleepycat Software, Inc.-->
+<!--$Id: intro.so,v 11.25 2006/06/06 17:21:17 bostic Exp $-->
+<!--Copyright 1997-2006 by Oracle Corporation-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
@@ -18,12 +18,13 @@
<h3 align=center>Loading Berkeley DB with Tcl</h3>
<p>Berkeley DB includes a dynamically loadable Tcl API, which requires that
Tcl/Tk 8.4 or later already be installed on your system. You can
-download a copy of Tcl from the <a href="http://dev.scriptics.com/">Tcl Developer Xchange</a> Web site.</p>
+download a copy of Tcl from the <a href="http://www.tcl.tk">Tcl
+Developer Xchange</a> Web site.</p>
<p>This document assumes that you already configured Berkeley DB for Tcl
support, and you have built and installed everything where you want it
to be. If you have not done so, see
<a href="../../ref/build_unix/conf.html">Configuring Berkeley DB</a> or
-<a href="../../ref/build_win/intro.html">Building for Win32</a> for more
+<a href="../../ref/build_win/intro.html">Building for Windows</a> for more
information.</p>
<h3>Installing as a Tcl Package</h3>
<p>Once enabled, the Berkeley DB shared library for Tcl is automatically installed
@@ -37,21 +38,21 @@ several steps that must be performed:</p>
</ol>
<p>For example:</p>
<blockquote><pre># tclsh8.4
-% lappend auto_path /usr/local/BerkeleyDB.4.3/lib
-% pkg_mkIndex /usr/local/BerkeleyDB.4.3/lib libdb_tcl-4.3.so</pre></blockquote>
+% lappend auto_path /usr/local/BerkeleyDB.4.5/lib
+% pkg_mkIndex /usr/local/BerkeleyDB.4.5/lib libdb_tcl-4.5.so</pre></blockquote>
<p>Note that your Tcl and Berkeley DB version numbers may differ from the
example, and so your tclsh and library names may be different.</p>
<h3>Loading Berkeley DB with Tcl</h3>
<p>The Berkeley DB package may be loaded into the user's interactive Tcl script
(or wish session) via the <b>load</b> command. For example:</p>
-<blockquote><pre>load /usr/local/BerkeleyDB.4.3/lib/libdb_tcl-4.3.so</pre></blockquote>
+<blockquote><pre>load /usr/local/BerkeleyDB.4.5/lib/libdb_tcl-4.5.so</pre></blockquote>
<p>Note that your Berkeley DB version numbers may differ from the example, and so
the library name may be different.</p>
<p>If you installed your library to run as a Tcl package, Tcl application
scripts should use the <b>package</b> command to indicate to the Tcl
interpreter that it needs the Berkeley DB package and where to find it. For
example:</p>
-<blockquote><pre>lappend auto_path "/usr/local/BerkeleyDB.4.3/lib"
+<blockquote><pre>lappend auto_path "/usr/local/BerkeleyDB.4.5/lib"
package require Db_tcl</pre></blockquote>
<p>No matter which way the library gets loaded, it creates a command named
<b>berkdb</b>. All the Berkeley DB functionality is accessed via this
@@ -62,6 +63,6 @@ display the library version, as follows:</p>
<p>This should return you the Berkeley DB version in a string format.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../rpc/faq.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../tcl/using.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
-<p><font size=1><a href="../../sleepycat/legal.html">Copyright (c) 1996-2004</a> <a href="http://www.sleepycat.com">Sleepycat Software, Inc.</a> - All rights reserved.</font>
+<p><font size=1>Copyright (c) 1996-2006 Oracle Corporation - All rights reserved.</font>
</body>
</html>