我试图运行一个使用rmagick的项目,bundle
运行正常但rails s
我得到了:
=> Booting WEBrick
=> Rails 4.0.3 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/Evo/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require': dlopen(/Users/Evo/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/liblzma.5.dylib (LoadError)
Referenced from: /usr/local/lib/libMagickCore-6.Q16.2.dylib
Reason: image not found - /Users/Evo/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/RMagick2.bundle (You may need to install the rmagick gem)
答案 0 :(得分:7)
错误表明你错过了对liblzma的依赖,liblzma在Homebrew中包含在xz公式中。试试这个:
brew install xz