我正在尝试使用“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)
' /Users/shannoga/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in 需要'来自
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:inrequire' 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:ineach' 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:ineach' 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
'
答案 0 :(得分:0)
如果有人遇到这个问题 - 我正在使用山狮,不得不为山狮手动安装最新的xQuartz,现在一切正常。
答案 1 :(得分:0)
安装运行系统更新的最新xQuarts 和对我有用。与此其他帖子相关:Imagemagick issue on Lion installed with Homebrew