1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>Tcl FAQ</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" /> 10 <link rel="up" href="tcl.html" title="Chapter��20.�� Berkeley DB Extensions: Tcl" /> 11 <link rel="prev" href="tcl_error.html" title="Tcl error handling" /> 12 <link rel="next" href="ext.html" title="Chapter��21.�� Berkeley DB Extensions" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Tcl FAQ</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="tcl_error.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��20.�� 23 Berkeley DB Extensions: Tcl 24 </th> 25 <td width="20%" align="right">��<a accesskey="n" href="ext.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="tcl_faq"></a>Tcl FAQ</h2> 35 </div> 36 </div> 37 </div> 38 <div class="orderedlist"> 39 <ol type="1"> 40 <li> 41 <span class="bold"> 42 <strong>I have several versions of Tcl installed. How do I configure 43Berkeley DB to use a particular version?</strong> 44 </span> 45 <p>To compile the Tcl interface with a particular version of Tcl, use the 46--with-tcl option to specify the Tcl installation directory that 47contains the tclConfig.sh file. See 48<a class="xref" href="build_unix_flags.html" title="Changing compile or load options">Changing compile or load options</a> for more information.</p> 49 </li> 50 <li> 51 <span class="bold"> 52 <strong>Berkeley DB was configured using --enable-tcl or --with-tcl and fails 53to build.</strong> 54 </span> 55 <p>The Berkeley DB Tcl interface requires Tcl version 8.4 or greater.</p> 56 </li> 57 <li> 58 <span class="bold"> 59 <strong>Berkeley DB was configured using --enable-tcl or --with-tcl and fails 60to build.</strong> 61 </span> 62 <p>If the Tcl installation was moved after it was configured and installed, 63try reconfiguring and reinstalling Tcl.</p> 64 <p>Also, some systems do not search for shared libraries by default, or do 65not search for shared libraries named the way the Tcl installation names 66them, or are searching for a different kind of library than those in 67your Tcl installation. For example, Linux systems often require linking 68"libtcl.a" to "libtcl#.#.a", whereas AIX systems often require adding the 69"-brtl" flag to the linker. A simpler solution that almost always works 70on all systems is to create a link from "libtcl.#.#.a" or "libtcl.so" 71(or whatever you happen to have) to "libtcl.a" and reconfigure.</p> 72 </li> 73 <li> 74 <span class="bold"> 75 <strong>Loading the Berkeley DB library into Tcl on AIX causes a core dump.</strong> 76 </span> 77 <p>In some versions of Tcl, the "tclConfig.sh" autoconfiguration script 78created by the Tcl installation does not work properly under AIX, and 79you may have to modify values in the tclConfig.sh file to in order to 80load the Berkeley DB library into Tcl. Specifically, the TCL_LIB_SPEC 81variable should contain sufficient linker flags to find and link against 82the installed libtcl library. In some circumstances, the tclConfig.sh 83file built by Tcl does not.</p> 84 </li> 85 </ol> 86 </div> 87 </div> 88 <div class="navfooter"> 89 <hr /> 90 <table width="100%" summary="Navigation footer"> 91 <tr> 92 <td width="40%" align="left"><a accesskey="p" href="tcl_error.html">Prev</a>��</td> 93 <td width="20%" align="center"> 94 <a accesskey="u" href="tcl.html">Up</a> 95 </td> 96 <td width="40%" align="right">��<a accesskey="n" href="ext.html">Next</a></td> 97 </tr> 98 <tr> 99 <td width="40%" align="left" valign="top">Tcl error handling��</td> 100 <td width="20%" align="center"> 101 <a accesskey="h" href="index.html">Home</a> 102 </td> 103 <td width="40%" align="right" valign="top">��Chapter��21.�� 104 Berkeley DB Extensions 105 </td> 106 </tr> 107 </table> 108 </div> 109 </body> 110</html> 111