Last active
June 17, 2020 21:55
-
-
Save paulsmith/7c809a7b84bcaa7cf66b5ca95d4edb4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paul@pumpkin:/tmp/SQLite-cf538e27$ python3.7 -c 'import sqlite3; print(sqlite3.connect(":memory").execute("select sqlite_version()").fetchone())' | |
('3.27.2',) | |
paul@pumpkin:/tmp/SQLite-cf538e27$ ldd /usr/lib/python3.7/lib-dynload/_sqlite3.cpython-37m-x86_64-linux-gnu.so | |
linux-vdso.so.1 (0x00007ffff752e000) | |
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f89e005b000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f89e003a000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f89dfe79000) | |
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f89dfcf6000) | |
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f89dfcf1000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f89e01da000) | |
paul@pumpkin:/tmp/SQLite-cf538e27$ sudo cp /usr/lib/python3.7/lib-dynload/_sqlite3.cpython-37m-x86_64-linux-gnu.so{,.bak} | |
[sudo] password for paul: | |
paul@pumpkin:/tmp/SQLite-cf538e27$ sudo patchelf --replace-needed libsqlite3.so.0 $PWD/.libs/libsqlite3.so.0 /usr/lib/python3.7/lib-dynload/_sqlite3.cpython-37m-x86_64-linux-gnu.so | |
paul@pumpkin:/tmp/SQLite-cf538e27$ ldd !$ | |
ldd /usr/lib/python3.7/lib-dynload/_sqlite3.cpython-37m-x86_64-linux-gnu.so | |
linux-vdso.so.1 (0x00007ffe997c2000) | |
/tmp/SQLite-cf538e27/.libs/libsqlite3.so.0 (0x00007f1440b59000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1440af6000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1440935000) | |
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1440930000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f1440c1a000) | |
paul@pumpkin:/tmp/SQLite-cf538e27$ python3.7 -c 'import sqlite3; print(sqlite3.connect(":memory").execute("select sqlite_version()").fetchone())' | |
('3.8.11.1',) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment