我安装了访问2.6.2(https://wci.llnl.gov/codes/visit/home.html),当我尝试运行它时,出现以下错误:

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


我已经启动并运行python 2.7.3。

最佳答案

如果您已安装python2.6,则看起来需要设置ldconfig(假设您使用的是* nix)。在/etc/ldconfig中添加一行,列出libpython2.6.so.1.0的安装目录,然后运行ldconfig

# We can try to find libpython2.6.so...
find / -name libpython2.6*

# Suppose it's in /usr/local/lib, add that line to /etc/ldconfig
echo '/usr/local/lib' | sudo tee -a /etc/ldconfig

# Update ldconfig, and you should be golden!
sudo ldconfig

10-05 21:24