我正在尝试将Linux命令行接口客户端安装在具有x64体系结构的CloudLinux机器上。当我试图运行可执行文件时,我会得到一个错误:
./boinc:加载共享库时出错: libstdc++.so.3:无法打开共享对象文件:没有这样的文件或目录
当我执行boinc可执行文件的ldd时,我发现:
libstdc++.so.3 => not found
当我安装compat-libstdc++-33时,我得到
配置file:///etc/yum.conf的CRITICAL:yum.cli:Config错误:访问文件错误
我无法访问任何形式的超级用户权限,我的帐户很可能处于chroot中。
我怎样才能让我的客户运行?
发布于 2012-01-22 02:32:36
libstdc++ 3不再是默认的libstdc++了。您仍然可以安装它,虽然最好是使用您的发行版包使用。我假设您的BOINC客户端是为您的arch,x86_64,而不是为x86编译的。这种差异在解决依赖问题方面是很重要的。
考虑到您是在一个普通的用户帐户上,理论上您应该能够在本地这样做。我不确定CloudLinux的哪个版本,但现在我假设它是6。
## Set up Lib Path Environment
cd ~
mkdir lib
echo "export LD_LIBRARY_PATH=~/lib" >> .profile
## Make tmp folder, download package in it
mkdir tmp
cd tmp
wget http://64.131.90.31/PSA_10.4.4/thirdparty-rpm-CloudLinux-6-x86_64/compat-libstdc++-296-2.96-144.el6.i686.rpm
## Extract package files, get the parts we want
rpm2cpio compat-libstdc++-296-2.96-144.el6.i686.rpm | cpio -idmv
cp usr/lib/libstdc++-* ../lib
## Go in our lib folder, and create symlinks to the lib ldd told you was missing
cd ../lib
ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++.so.3
## Go back to home, and source our profile changes.
cd ~
. .profile一旦你这样做了,试着再次运行你的客户。你可能需要重新登录,告诉我后来发生了什么!
https://unix.stackexchange.com/questions/29674
复制相似问题