我想运行RSpec测试,但当运行paperclip测试时,我一直遇到这个错误:
identify: no decode delegate for this image format `0x000001034f6718>' @ error/constitute.c/ReadImage/532.
我正在使用Rails 3.2版本,最新版本的ImageMagick以及已安装jpeg库...
我想运行RSpec测试,但当运行paperclip测试时,我一直遇到这个错误:
identify: no decode delegate for this image format `0x000001034f6718>' @ error/constitute.c/ReadImage/532.
我在Mac(El Captain)上遇到了类似的问题,这个解决方案帮助了我:
在你的命令行中
gem unistall rmagick
如果您安装了多个版本,请同时选择。 现在您没有安装'gem rmagick'。
在你的命令行中
brew install imagemagick
你可能会收到需要覆盖已经存在的文件的通知,然后只需运行:
brew install imagemagick --dry-run
编辑你的Gemfile文件,像这样添加你想要的rmagick版本。
gem 'rmagick', '2.15,4' 保存文件。
在命令行中输入以下命令:
bundle
希望这能帮到你,祝你好运!