J Spen
J Spen

Reputation: 2664

Compiling python from source error with shared library loading error

When I try to run python I get the error:

python2.6: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

I had previously compiled python with no issues and ran it fine. I didn't enable --with-threads or --enable-shared. Now that I enabled these two compile options I get this error when trying to run it. The file libpython is in $HOME/lib and python is in $HOME/bin.

Upvotes: 1

Views: 1274

Answers (1)

jcomeau_ictx
jcomeau_ictx

Reputation: 38432

sudo ldconfig -n $HOME/lib

ought to fix the problem. otherwise, strace python and pastebin the results.

Upvotes: 0

Related Questions