1

我安装了 visit 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。

4

3 回答 3

1

如果你已经安装了 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
于 2013-03-28T21:20:17.110 回答
0

你应该添加这个:

/----/VisIt/current/linux-x86_64/lib

LD_LIBRARY_PATH环境变量,然后访问就可以了。

于 2013-06-19T05:14:14.400 回答
0

不能投票上面的答案,但他是对的:在 linux 上,您不需要在系统范围内安装 python 2.6。

在 opensuse 12.2 上,以下内容对我有用(在 /home/me/bin/visit/bin 中):

env LD_LIBRARY_PATH=/home/me/bin/visit/current/linux-x86_64/lib ./visit

于 2013-07-08T16:14:55.960 回答