SQLite: Instalasi menggunakan apt-get

From OnnoWiki
Revision as of 13:55, 2 April 2014 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

jika sebelumnya pernah di instalasi sqlite3 ada baiknya lakukan

rm /usr/local/bin/sqlite3

Install sqlite3

apt-get install sqlite3 libsqlite3-dev

SQLite3 suka rewel, coba di test dulu

sqlite3 --version

Yang seharusnya keluar

3.7.15.2 2013-01-09 11:53:05 c0e09560d26f0a6456be9dd3447f5311eb4f238f

Kalau ada error, SQLite header mismatch seperti di bawah ini

SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc

Jika ada error, coba lakukan

apt-get remove --purge sqlite3 libsqlite3-dev
apt-get install sqlite3 libsqlite3-dev
cp /usr/bin/sqlite3 /usr/local/bin/