RMagick抱怨它配置了不同版本的ImageMagick [英] RMagick complains it was configured with a different version of ImageMagick

查看:159
本文介绍了RMagick抱怨它配置了不同版本的ImageMagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Rails项目的本地脚本/服务器时遇到以下错误:

I am getting following error while running local script/server of my Rails project:


使用ImageMagick 6.6.1配置了RMagick的安装,但正在使用ImageMagick 6.4.5。 (RuntimeError)

This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.4.5 is in use. (RuntimeError)

运行识别--version 显示以下内容:


版本:ImageMagick 6.6.1-10 2010-05-21 Q8 http://www.imagemagick.org

所以,我的问题是如何以及应该在哪里我做了改变,工作得很好;我已经重新安装了ImageMagick,但是没有用。

So, my question is how and where should I make changes to work it fine; I have already reinstalled ImageMagick but that didn't work.

推荐答案

同样的事情发生在我身上,但解决方案有点简单而不是卸载imageMagick。听起来Rmagick的配置文件没有更新以使用您更新的imagemagick所以尝试

the same thing happened to me but the solution was a bit simpler than uninstalling imageMagick. It sounds like Rmagick's config file isn't updated to use your updated imagemagick so try

sudo gem uninstall rmagick
sudo gem install rmagick

重新启动服务器。

这对我有用希望能有所帮助

This worked for me hope it helps

我仔细看了一下,发现你已经配置了Rmagick较新的imageMagick但使用较旧的imageMagick。所以我认为我的解决方案仍然有效,但你不会使用更新的ImageMagick。

I took a closer look and noticed you had Rmagick configured for a newer imageMagick but using an older imageMagick. So I would assume that my solution would still work but you would not be using the newer ImageMagick.

这篇关于RMagick抱怨它配置了不同版本的ImageMagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆