Monday, May 14, 2007

PySQLite 2.3.3 installation issue

I was trying to install PySQLite on my RHEL 4 box and ran into an error of the form:
libsqlite3.so.0: cannot open shared object file: No such file
> or directory

Internet research led me to discover that this means that the directory where your SQLite is installed is not in your /etc/ld.so.conf. You can add it there and run ldconfig, or add LD_LIBRARY_PATH=/path/to/SQLiteLibs temporarily to get it to build right. I added my /usr/local/lib to ld.so.conf, ran ldconfig, and then reran the python setup.py install for PySQLite and all was well.

No comments: