Rails - rMagic不工作?

时间:2012-03-06 23:26:15

标签: ruby-on-rails-3 carrierwave rmagick

我正在尝试使用“carrierWave”。我使用自制软件和rmagic和carrierwave宝石安装了“imagemagic”。 当我运行rails g uploader image时,我在终端中收到此错误 -

非常感谢任何帮助

沙尼

  

shannoga $ rails g上传者图片   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1/lib/rmagick.rb:11:in   来自require': dlopen(/Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/X11/lib/libfreetype.6.dylib (LoadError)
Referenced from: /usr/local/lib/libMagickCore.5.dylib Reason: Incompatible library version: libMagickCore.5.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0 - /Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1/lib/RMagick2.bundle from /Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1/lib/rmagick.rb:11:in
'   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in   需要'来自require' from /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in 阻止(2级)   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in   each' from /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in 阻止在'来自'   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in   each' from /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in 需要'来自   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler.rb:122:in   来自require' from /Users/shannoga/SITES/ANGELS_APP_CMS/config/application.rb:7:in'   /Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:24:in   来自script / rails的require' from /Users/shannoga/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:24:in :6:require' from script/rails:6:in'

2 个答案:

答案 0 :(得分:0)

如果有人遇到这个问题 - 我正在使用山狮,不得不为山狮手动安装最新的xQuartz,现在一切正常。

答案 1 :(得分:0)

安装运行系统更新的最新xQuarts 对我有用。与此其他帖子相关:Imagemagick issue on Lion installed with Homebrew