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

问题描述 投票:0回答:2

当我在我的 vagrant VM 中执行我的应用程序(rails)时,我发现了这个问题:

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 的 precise32.box)。 请问有什么帮助吗?

ruby-on-rails gtk shared-libraries x11
2个回答
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

问题解决了。


0
投票

解决了:

sudo apt install -y libgtkmm-3.0-1v5 libnotify4

© www.soinside.com 2019 - 2024. All rights reserved.