开发者

Compiling python from source error with shared library loading error

开发者 https://www.devze.com 2023-03-18 16:38 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号