SQLite: Compile dari source

From OnnoWiki
Revision as of 13:37, 3 August 2012 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Siapkan pendukung

sudo apt-get install build-essential

Compile SQLite:

wget http://www.sqlite.org/sqlite-autoconf-3071300.tar.gz
cp sqlite-autoconf-3071300.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf sqlite-autoconf-3071300.tar.gz
cd /usr/local/src/sqlite-autoconf-3071300
./configure
make
sudo make install
sudo ldconfig

Pastikan ldconfig di jalankan


Cek sqlite3

sqlite3 --version


Error header mismatch

Jika di jalankan sqlite3 keluar

SQLite header and source version mismatch
2010-08-23 18:52:01 42537b60566f288167f1b5864a5435986838e3a3
2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f

SOLUSI:

  • Coba remove file sqlite3 dari /usr/bin atau /usr/local/bin
  • Compile lagi

Pranala Menarik