libgtk-x11-2.0 lib和libgtk-3有些问题吗?

时间:2014-02-04 15:32:43

标签: ruby-on-rails gtk shared-libraries x11

当我将我的应用程序(rails s)执行到我的流浪汉VM时,我发现了这个问题:

vagrant@myapp:/vagrant$ rails s
Could not open library 'libgtk-x11-2.0': libgtk-x11-2.0: cannot open shared object file: No such file or directory.
Could not open library 'libgtk-x11-2.0.so': libgtk-x11-2.0.so: cannot open shared object file: No such file or directory.
Could not open library 'libgtk-x11-2.0.so.0': libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory.
Could not open library 'libgtk-3': libgtk-3: cannot open shared object file: No such file or directory.
Could not open library 'libgtk-3.so': libgtk-3.so: cannot open shared object file: No such file or directory.
Could not open library 'libgtk-3.so.0': libgtk-3.so.0: cannot open shared object file: No such file or directory
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2014-02-02 15:20:44] INFO  WEBrick 1.3.1
[2014-02-02 15:20:44] INFO  ruby 1.9.3 (2013-02-22) [i686-linux]
[2014-02-02 15:20:44] INFO  WEBrick::HTTPServer#start: pid=2035 port=3000

我正在查看我的 Synaptic Package Manager ,但我找不到 lib libgtk-x11-2.0

我在Ubuntu 12.04(针对Vagrant的exact32.box)。 有什么帮助吗?

1 个答案:

答案 0 :(得分:2)

好的,它已经解决了。我找到了AskUbuntu

中的解决方案
sudo apt-get install libgtk2.0-0:i386 (from AskUbuntu).

因为它是32位二进制文​​件并且需要32位版本的libgtk,但是我必须安装其他的依赖项。

sudo apt-get install libgtkmm-3.0-1
sudo apt-get install libnotify4

问题解决了。