0

我正在尝试运行 rails g 控制器应用程序,我在终端中收到此错误,
也没有“rails ----”命令正常工作,他们都收到此错误

这里

em install minitest
    WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
    Could not open library 'libgtk-x11-2.0': dlopen(libgtk-x11-2.0, 13): image not found.
    Could not open library 'libgtk-x11-2.0.dylib': dlopen(libgtk-x11-2.0.dylib, 13): image not found.
    Could not open library 'libgtk-x11-2.0.so.0': dlopen(libgtk-x11-2.0.so.0, 13): image not found.
    Could not open library 'libgtk-x11-2.0.so.0.dylib': dlopen(libgtk-x11-2.0.so.0.dylib, 13): image not found.
    Could not open library 'libgtk-x11-2.0.so': dlopen(libgtk-x11-2.0.so, 13): image not found.
    Could not open library 'libgtk-x11-2.0.so.dylib': dlopen(libgtk-x11-2.0.so.dylib, 13): image not found.
    Could not open library 'libgtk-3': dlopen(libgtk-3, 13): image not found.
    Could not open library 'libgtk-3.dylib': dlopen(libgtk-3.dylib, 13): image not found.
    Could not open library 'libgtk-3.so.0': dlopen(libgtk-3.so.0, 13): image not found.
    Could not open library 'libgtk-3.so.0.dylib': dlopen(libgtk-3.so.0.dylib, 13): image not found.
    Could not open library 'libgtk-3.so': dlopen(libgtk-3.so, 13): image not found.
    Could not open library 'libgtk-3.so.dylib': dlopen(libgtk-3.so.dylib, 13): image not found
4

1 回答 1

0

尝试 gem uninstall nokogiri 然后 gem install nokogiri。或尝试 gem update nokogiri。另外,请尝试查看这篇文章Image Not Found Errors after Upgrade to Rails 3.1,如何修复?.

于 2013-06-02T21:59:26.117 回答