Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so

来源:互联网 发布:sql 试图的意义 编辑:程序博客网 时间:2024/06/06 09:58

被这个问题困惑了好几天,终于解决了,解决方法如下:

When I try to install VMWare Workstation 9.0.1,on CentOS 6.4 i386, I get the following error:

[root@centos]# ./vmware-workstation-full-9.0.1-894247.i386.bundle Extracting VMware Installer...done.
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

Solution for installing VMWare Workstation 9 on CentOS

first you need to install yum install PackageKit-gtk-module and yum install libcanberra

yum install PackageKit-gtk-module

yum install libcanberra

This occurs because the requested gtk modules aren’t in any of the paths defined in /etc/ld.so.conf.d/*

To correct this I did the following:

for 32 bit version, copy this in Terminal

echo "/usr/lib/gtk-2.0/modules" > /etc/ld.so.conf.d/gtk2.conf
ldconfig

for 64 bit version, copy this in Terminal

echo "/usr/lib64/gtk-2.0/modules" > /etc/ld.so.conf.d/gtk2.conf
ldconfig

Solution for installing VMWare Workstation 9 on Ubuntu

for 32 bit version, copy this in Terminal

sudo ln -s /usr/lib/i386-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so

for 64 bit version, copy this in Terminal

sudo ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so

finally,running `ldconfig` as root.The VMWare Workstation installer should now be able to find the requested modules


0 0
原创粉丝点击