LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-09-2010, 11:20 AM   #1
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Rep: Reputation: 15
Question can't find package sqlite3 - using TCL on Ubuntu


Hi,

I am programming with TCL on Ubuntu Linux. I need to access a SQLite3 database. I loaded the SQLite3 package using sudu apt-get install sqlite3. When I try to open the database in TCL I get the error "can't find package sqlite3"

The line of code is: "sqlite3 db /home/lana/CAL_development/databases/CpRoutine.db"

I also have "package require sqlite3" directive in the program.


Any ideas what I am doing wrong?
 
Old 06-09-2010, 12:30 PM   #2
Niartov
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Just because you have installed sqlite doesn't mean you have the tcl package. You might be able to search for tcl and sqlite in apt-get. I think it is in the fedora library but that wont help you to much.
 
0 members found this post helpful.
Old 06-09-2010, 12:41 PM   #3
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Unhappy

Thanks for the suggestion but installing tcl with apt-get did not help.
 
Old 06-09-2010, 12:48 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Quote:
"can't find package sqlite3"
"package" usually means /usr/lib/pkgconfig/sqlite3.pc

Or may be a missing 'libsqlite3-tcl' ?

Suggest : sudo apt-get install libsqlite3-dev libsqlite3-tcl

(Installing the package 'sqlite3' installs only a part of "sqlite")
..

Last edited by knudfl; 06-09-2010 at 01:06 PM.
 
1 members found this post helpful.
Old 06-09-2010, 12:51 PM   #5
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Smile

That did it! Thanks so much!!!

Miamagoo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite3, C++ & Ubuntu - undefined reference to `sqlite3_open' miamagoo Ubuntu 1 06-07-2010 03:25 PM
I want to install php5-sqlite3 on Ubuntu jax8 Linux - Newbie 3 08-20-2009 06:51 AM
Tuxracer can't find Tcl Napalm Llama Linux - Games 6 05-31-2007 01:51 AM
tcl devel package for fedora core 4 i686 wahaha Linux - Software 4 09-01-2006 03:37 PM
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 10:45 AM


All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration