Re: How to load package sqlite3 using package require cmd ?
- From: schlenk <schlenk@xxxxxxxxxxxxxxxx>
- Date: Tue, 14 Oct 2008 01:43:00 -0700 (PDT)
On Oct 14, 8:50 am, MSE...@xxxxxxxxx wrote:
On Oct 13, 4:09 pm, schlenk <schl...@xxxxxxxxxxxxxxxx> wrote:No. Newer versions of Tcl are more picky about a mismatch between
On Oct 13, 3:46 pm, duzuike <duzu...@xxxxxxxxx> wrote:
Hi,
My OS is xubuntu, I have installed sqlite3(v3.4.2) and tcl8.5,but I
don't know the correct way to load the sqlite3 package.
%package versions slqite3
3.4
% package require sqlite3 3.4
attempt to provide package sqlite3 3.4 failed: package sqlite3 3.4.2
provided instead
while evaluating {package require sqlite3 3.4}
%package require sqlite3 3.4.2
can't find package sqlite3 3.4.2
while evaluating {package require sqlite3 3.4.2}
But I can always load sqlite3 using 'load /usr/lib/sqlite3/
libtclsqlite3.so.0' without problem .
I think the "package require cmd" is a good grammar, but why I can't
load the package ?
Packager error..., file a bug report with ubuntu.
They probably wrote a broken pkgIndex.tcl file which states that it
provides sqlite3 3.4 but in fact it provided 3.4.2.
(so you can fix the pkgIndex.tcl file by hand)
Michael
Why not simply
package require sqlite3
without asking for any version (if there is only one present/
installed), thats what I use.
it would still be useful to fix the pkgIndex.tcl for later if/when a
newer version is added.
announced version and provided version. If those do not match you get
an error. So fixing the pkgIndex.tcl is strictly needed.
Michael
.
- Follow-Ups:
- References:
- Prev by Date: Re: problem regarding "exec" statement
- Next by Date: Re: problem regarding "exec" statement
- Previous by thread: Re: How to load package sqlite3 using package require cmd ?
- Next by thread: Re: How to load package sqlite3 using package require cmd ?
- Index(es):
Relevant Pages
|
|