简体   繁体   中英

SQLite header and source version mismatch in Linux Ubuntu 12.04 lts

I Have this problem with sqlite3. I am using Linux Ubuntu 12.04 and I can not resolve this problem Can Someone help me? I need use sqlite but I don't know how repair this

$ sqlite3
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212

i had the same problem. I found the solution at AskUbuntu After building the SQLite from source, your head and source are in 2 separate places and have to be adjusted.

your source-location: /usr/local/lib

your head-location: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 (or /usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6 for i386 arch)

just overwrite the head with the source. worked for me :)

sudo cp /usr/local/lib/libsqlite3.so.0.8.6 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM