Page 1 of 1

[SOLVED] How do I install sqlite3 on Mageia 2?

PostPosted: Feb 26th, '13, 18:40
by riclags
I am going over a tutorial where there's a part to run:
Code: Select all
$ sqlite3 some.db < schema.sql

But when I run the command, I get error
Code: Select all
bash: sqlite3: command not found

I tried using urpmq -y sqlite3 but it isn't producing any viable candidates for the sqlite3 binary. I only have Core Release and Core Updates as my active media. I also did a minimal install of Mageia 2. I hope these details are enough to point me in the right direction on installing sqlite3. It was mentioned in the tutorial that it's installed along with Python; I have Python 2.7.3 installed but still I get the error above when I run the command.

Thanks.

Re: How do I install sqlite3 on Mageia 2?

PostPosted: Feb 26th, '13, 20:06
by djennings
Code: Select all
$ urpmf /usr/bin/sqlite3
sqlite3-tools:/usr/bin/sqlite3
                                                             
[derek@Derek ~]$ urpmq -i sqlite3-tools
Name        : sqlite3-tools
Version     : 3.7.14.1
Release     : 1.1.mga2
Group       : Databases
Size        : 53596                        Architecture: x86_64
Source RPM  : sqlite3-3.7.14.1-1.1.mga2.src.rpm
URL         : http://www.sqlite.org/
Summary     : Command line tools for managing the lib64sqlite3_0 library
Description :
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains command line tools for managing the
lib64sqlite3_0 library.


Re: [SOLVED] How do I install sqlite3 on Mageia 2?

PostPosted: Feb 27th, '13, 02:37
by riclags
Thanks djennings. Solved.