Gem 解决一个 RMagick 的诡异错误

mobiwolf · July 16, 2012 · Last by Victor replied at July 29, 2012 · 2971 hits

可能是某天升级 brew 的 imageMagick 之后 RMagick 有问题了,就出现了如下错误:

This installation of RMagick was configured with ImageMagick 6.7.5 but ImageMagick 6.7.7-6 is in use. (RuntimeError)

解决办法: gem pristine rmagick

连接:https://github.com/mroth/lolcommits/issues/56

google 英文搜索链接到这里得,赞

还有一种解决办法是在 config/application.rb 中添加

RMAGICK_BYPASS_VERSION_TEST = true

加在下面一行之前就可以

Bundler.require(:default, Rails.env) if defined?(Bundler)
You need to Sign in before reply, if you don't have an account, please Sign up first.