错误的 JPEG 库 - ruby​​ on Rails - OS X

发布于 2024-08-18 06:41:28 字数 796 浏览 4 评论 0原文

每当我调用任何具有使用 RMagick 的调用的页面时,我都会收到此错误,但我无法弄清楚我缺少哪个库,或者我需要安装什么来消除此错误。有人有调试建议吗?

    Processing SimpleCaptchaController#simple_captcha (for 127.0.0.1 at 2010-01-14 14:24:24) [GET]
  Parameters: {"image_style"=>"", "time"=>"1263500664", "simple_captcha_key"=>"13eec13214d2ce84b725d14c5877fcbe13308cf5", "distortion"=>""}
Could not dump header data for exception: not opened for reading

ArgumentError (unknown format: JPG):
  /usr/local/lib/ruby/gems/1.8/gems/fiveruns-dash-ruby-0.8.10/lib/fiveruns/dash/instrument.rb:125:in `perform_action_without_rescue'

...

根据以下尝试解决方案的缓存重新安装后,

我收到此错误:

Magick::ImageMagickError (Wrong JPEG library version: library is 62, caller expects 70 `' @ jpeg.c/EmitMessage/232):

I keep getting this error any time i call any page that has a call that uses RMagick, but i can't figure out what library i'm missing, or what i need to install to get rid of this error. Does anyone have debugging suggestions?

    Processing SimpleCaptchaController#simple_captcha (for 127.0.0.1 at 2010-01-14 14:24:24) [GET]
  Parameters: {"image_style"=>"", "time"=>"1263500664", "simple_captcha_key"=>"13eec13214d2ce84b725d14c5877fcbe13308cf5", "distortion"=>""}
Could not dump header data for exception: not opened for reading

ArgumentError (unknown format: JPG):
  /usr/local/lib/ruby/gems/1.8/gems/fiveruns-dash-ruby-0.8.10/lib/fiveruns/dash/instrument.rb:125:in `perform_action_without_rescue'

...

After re-installing based on this cache of the bellow attempted solution

i am getting this error:

Magick::ImageMagickError (Wrong JPEG library version: library is 62, caller expects 70 `' @ jpeg.c/EmitMessage/232):

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终难遇 2024-08-25 06:41:28

我必须:

sudo port uninstall jpeg

在 git 上使用此脚本安装图像魔法:

http://github.com/masterkain/ImageMagick -sl

在我能够安装 rmagick 之后:

sudo gem install rmagick

现在,没有更多问题了。

I had to:

sudo port uninstall jpeg

install image magic using this script on git:

http://github.com/masterkain/ImageMagick-sl

after i was able to install rmagick:

sudo gem install rmagick

now, no more problems.

握住你手 2024-08-25 06:41:28

他们的网站目前已关闭,但当它重新上线时,您应该运行 Solomon White 的安装脚本。

http://onrails.org/articles/ 2009/09/04/rmagick-from-source-on-snow-leopard

Their site is down at the moment, but when it comes back online you should run this install script by Solomon White.

http://onrails.org/articles/2009/09/04/rmagick-from-source-on-snow-leopard

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文