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