anisha@linux-y3pi:~/> google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
anisha@linux-y3pi:~/> locate libGL
/opt/google/earth/free/libGLU.so.1
/usr/lib64/libGL.so
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2
/usr/lib64/libGLU.so.1
/usr/lib64/libGLU.so.1.3.070802
anisha@linux-y3pi:~/> uname -a
Linux linux-y3pi 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux在OpenSUSE上,尝试Mesa-32位中的zypper来安装32位版本的库。
linux-y3pi:# zypper in Mesa-32bit
Retrieving repository 'google-chrome' metadata [\]
Failed to download /repodata/repomd.xml from http://dl.google.com/linux/chrome/rpm/stable/x86_64
Abort, retry, ignore? [a/r/i/?] (a): r
Retrieving repository 'google-chrome' metadata [|]
Failed to download /repodata/repomd.xml from http://dl.google.com/linux/chrome/rpm/stable/x86_64
Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository 'google-chrome' metadata [error]
Repository 'google-chrome' is invalid.
Can't provide /repodata/repomd.xml : User-requested skipping of a file
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'google-chrome' because of the above error.
Retrieving repository 'google-earth' metadata [/]
Failed to download /repodata/repomd.xml from http://dl.google.com/linux/earth/rpm/stable/i386
Abort, retry, ignore? [a/r/i/?] (a): r
Failed to download /repodata/repomd.xml from http://dl.google.com/linux/earth/rpm/stable/i386
Abort, retry, ignore? [a/r/i/?] (a):发布于 2012-07-09 06:17:35
正如Renan所说,这是32/64位错配的结果。在OpenSUSE上,尝试zypper in Mesa-32bit安装这个库的32位版本。通常,如果您有64位版本,可以使用rpm -qf查找包含库的包:
% rpm -qf /usr/lib64/libGLU.so.1
Mesa-7.11-11.4.2.x86_64在OpenSUSE上,32位库的命名约定是将-32bit附加到包名,因此剥离版本和体系结构信息,并添加后缀以获得Mesa-32bit。
发布于 2012-07-09 11:51:37
在我的64位框中,我通常会将任何匹配的32位库安装到我的64位库中,这样我就不会遇到这个问题。当然,这是我可能不需要或从未使用过的额外库,但话又说回来,我通常也不会得到这些错误。
https://unix.stackexchange.com/questions/42628
复制相似问题