SQLite: Compile dari source

From OnnoWiki
Jump to navigation Jump to search

Siapkan pendukung

sudo apt-get install build-essential

Compile SQLite:

wget https://sqlite.org/2014/sqlite-autoconf-3080401.tar.gz
cp sqlite-autoconf-3080401.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf sqlite-autoconf-3080401.tar.gz
cd /usr/local/src/sqlite-autoconf-3080401
./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