LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10: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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-09-2010, 11:30 AM   #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, 11:41 AM   #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, 11:48 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 12:06 PM.
 
2 members found this post helpful.
Old 06-09-2010, 11:51 AM   #5
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Original Poster
Rep: Reputation: 15
Smile

That did it! Thanks so much!!!

Miamagoo
 
  


Reply



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 02:25 PM
I want to install php5-sqlite3 on Ubuntu jax8 Linux - Newbie 3 08-20-2009 05:51 AM
Tuxracer can't find Tcl Napalm Llama Linux - Games 6 05-31-2007 12:51 AM
tcl devel package for fedora core 4 i686 wahaha Linux - Software 4 09-01-2006 02:37 PM
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration