I want to replace libsqlite3 with the special version for Python.
I have a special version of libsqlite3.so.0 /path/to/libsqlite3.so.0 and configured LD_LIBRARY_PATH.
However, python's internal will not load it.
I checked and noticed the following:
import sqlite3loads python's original/usr/lib/python2.7/sqlite/__init__.pyanddbapi2.py.dbapi2.pyimports_sqlite, and this indicates/usr/lib/python2.7//lib-dynload/_sqlite3.so._sqlite3.soalways loads/usr/lib/i386-linux-gnu/libsqlite3.so.0, in spite of settingLD_LIBRARY_PATH.- If I copy
libpthread.so.0to/path/to/libpthread.so.0,_sqlite3.soloads it. So,/path/to/libpthread.so.0is loaded but/path/to/libsqlite3.so.0is not loaded.
I want to know how to load /path/to/libsqlite3.so.0, a special version, without replacing /usr/lib/i386-linux-gnu/libsqlite3.so.0 (only with non-privileged permission).