简体   繁体   English

Linux Ubuntu 12.04 LTS中的SQLite标头和源版本不匹配

[英]SQLite header and source version mismatch in Linux Ubuntu 12.04 lts

I Have this problem with sqlite3. 我有sqlite3这个问题。 I am using Linux Ubuntu 12.04 and I can not resolve this problem Can Someone help me? 我正在使用Linux Ubuntu 12.04,但无法解决此问题有人可以帮助我吗? I need use sqlite but I don't know how repair this 我需要使用sqlite,但我不知道如何修复

$ 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. 我在AskUbuntu上找到了解决方案。从源代码构建SQLite之后,您的头和源代码位于2个单独的位置,必须进行调整。

your source-location: /usr/local/lib 您的源位置: /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) 您的头部位置: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 (或对于i386拱形为/usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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