问题描述
我在运行Rails项目的本地脚本/服务器
时遇到以下错误:
I am getting following error while running local script/server
of my Rails project:
运行识别--version
显示以下内容:
所以,我的问题是如何以及应该在哪里我做了改变,工作得很好;我已经重新安装了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!