LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   can't find package sqlite3 - using TCL on Ubuntu (https://www.linuxquestions.org/questions/programming-9/cant-find-package-sqlite3-using-tcl-on-ubuntu-813157/)

miamagoo 06-09-2010 10:20 AM

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?

Niartov 06-09-2010 11:30 AM

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.

miamagoo 06-09-2010 11:41 AM

Thanks for the suggestion but installing tcl with apt-get did not help.

knudfl 06-09-2010 11:48 AM

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")
..

miamagoo 06-09-2010 11:51 AM

That did it! Thanks so much!!!

Miamagoo


All times are GMT -5. The time now is 03:24 AM.