Page History
- 2005-Sep-24 11:17 drh
- 2005-Sep-24 11:16 drh
- 2004-Oct-29 14:09 anonymous
- 2003-Oct-16 14:46 anonymous
- 2003-Oct-16 14:46 anonymous
- 2003-Apr-21 02:08 anonymous
- Create a directory called TclSqlite under the Tcl /lib directory.
- Copy or move the TclSqlite library to the newly created directory.
- From Tcl, execute: "pkg_mkIndex -direct <tcl>/lib/TclSqlite *.<ext>" where <tcl> is the path to the /lib directory and <ext> is the library extension (dll or so).
Once you've done this, you'll have a pkgIndex.tcl file in the TclSqlite directory. Tcl will use that file to automatically locate the package. Now all you have to do is use:
package require sqlite
or
package require sqlite 2
or
package require sqlite 2.0
depending on how cautious you want to be--and assuming that you're using version 2 of the library! (The second and third choices are probably best in most cases. Use the first choice to find the most recent version you've installed.)
GoThereNow_