rmagick 和 OS X Lion [英] rmagick and OS X Lion

查看:42
本文介绍了rmagick 和 OS X Lion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚从 Leopard 升级(即不是新安装)到 Lion,我以前运行良好的 rmagick 现在不再工作并给我这个错误:

Just upgraded (i.e. not a new install) to Lion from Leopard and my previously well-working rmagick now doesn't work anymore and gives me this error:

您的 Rack 应用在 Pow 尝试运行时引发了异常.

Your Rack app raised an exception when Pow tried to run it.

LoadError: dlopen(/Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded:
/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle
Reason: image not found - /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle
~/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle
~/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/rmagick.rb:11
~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'

<小时>

尝试卸载 rmagick 并重新安装,但没有帮助.


Tried uninstalling rmagick and re-installing, but that didn't help.

有人有解决方案吗?

谢谢:-)

推荐答案

我遇到了同样的问题,并通过卸载 ImageMagick、删除 rmagick gem 并再次运行 bundle install 来解决它.

I had the same problem and resolved it by uninstalling ImageMagick, removing the rmagick gem and running bundle install again.

在重新安装和运行 bundle install 之前,确保 rmagick gem 完全从你的 ~/.rvm/gems/ruby-1.8.7-p334/gems/文件夹中消失,它至少应该让你摆脱那个错误.

Make sure the rmagick gem is completely gone from your ~/.rvm/gems/ruby-1.8.7-p334/gems/ folder before re-installing and running bundle install and it should at least get you beyond that error.

这篇关于rmagick 和 OS X Lion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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