SQLite header and source version mismatch

Let me talk about the environment unbuntu20.04
wanted to use sqlite3 results in the
error in this way
SQLite header and Source Version mismatch The
2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837balt1
2014-02-11 14:52:19 ea3317a4803d71d88183b29f1d3086f46d68a00e
Insert picture description here
Let me talk about the reasons, here is Because this version of unbuntu comes with sqlite
(so say yeah, I knew if I did not install it by myself , it can be used, and it will be discarded after installation)

The solution is to delete the previous version of
libsqlite3.so.0
libsqlite3.so.0.8.6

These two files, if I am here, the path is in
/usr/lib/x86_64-linux-gnu, of
course yours may be in
/usr/lib/i386-linux-gnu

Of course none, then you should directly use the whereis command to find directly like the following is
whereis libsqlite3.so.0.8.6

After deleted the previous version, and you will get the installed version of
libsqlite3.so.0
libsqlite3.so.0.8.6
use
sudo cp libsqlite3.so.0 / usr / lib / x86_64-the GNU-Linux
sudo cp libsqlite3.so. 0.8.6 /usr/lib/x86_64-linux-gnu
passed

Of course you have to enter the directory with these two files first.
I ca n’t find
/usr/local/lib here
, so continue to use whereis earlier.

Finally, write an instruction for manual installation of sqlit3.
This is the download link of the 2014 sqlit version. Click to enter

1. In linux, enter the decompressed file to
run the configuration file

./configure

Generate the entire environment

2. Use Makefile to place the dependent libraries in the environment
sudo make install

After the above two steps are completed, enter cd /usr/local/lib, the two
libsqlite3.so.0
libsqlite3.so.0.8.6
are inside

Guess you like

Origin blog.csdn.net/weixin_43134049/article/details/106581820