RuntimeError RMagick

时间:2013-04-03 19:01:21

标签: ruby-on-rails rmagick

我需要做些什么才能解决此错误

This installation of RMagick was configured with ImageMagick 6.6.9 but ImageMagick 6.7.5-10 is in use.

app / uploaders / avatar_uploader.rb:2:include' app/uploaders/avatar_uploader.rb:2:in' app / uploaders / avatar_uploader.rb:1:in <top (required)>' app/models/user.rb:2:in' app / models / user.rb:1:<top (required)>' app/controllers/users_controller.rb:1:in'

加载以下文件时发生此错误:    RMagick    RMagick2.so

1 个答案:

答案 0 :(得分:0)

您可能在安装gem后更新了系统上的ImageMagick,因此本机gem扩展程序与您实际安装的版本不匹配。

你应该能够重新安装宝石以使其针对你的新ImageMagick 6.7.5-10进行构建:

gem install rmagick