|
The Tcl interface is included with the SQLite source distribution. Compiling from source on a Unix system creates the library file libtclsqlite.so, which should be installed to a valid library location. A binary distribution of the TCL library can be obtained from http://www.sqlite.org/download.html for both Linux and Windows, in compressed formats named tclsqlite.so.gz and tclsqlite.zip respectively. The library file should go in a location from which Tcl can find the package. On Linux this would usually be a subdirectory of /usr/share/tcl; on Windows, sqlite.dll is typically extracted to C:\tcl\lib. Assuming the subdirectory is called TclSqlite, running the following command from Tcl will generate pkgIndex.tclwhich is required in order for Tcl to be able to locate the packageon a Linux system: % pkg_mkIndex -direct /usr/share/tcl/TclSqlite *.so On Windows, the equivalent command would be % pkg_mkIndex -direct C:\tcl\lib\TclSqlite *.dll If you installed using the RPM distribution on a compatible Linux system, tclsqlite.so will already have been installed to a directory from which it can be imported into tclsh or wish. |
|