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 pytho开发者_如何学编程n is in $HOME/bin.
sudo ldconfig -n $HOME/lib
ought to fix the problem. otherwise, strace python
and pastebin the results.
精彩评论