如何修复错误“没有要加载的文件 - RMagick”?
升级到Rails 3.0 后,rmagick 库不再被检测到。这是我的设置:
Ubuntu server 10.4
gem 1.7.2
ruby 1.9.1
rails 3.0.7
rmagick-2.13.1
在 irb 中可以包含库:
irb(main):002:0> require 'RMagick'
=> true
在 Rails 2 rmagick 中可用。
After upgrading to Rails 3.0 Library rmagick longer be detected. Here is my setup:
Ubuntu server 10.4
gem 1.7.2
ruby 1.9.1
rails 3.0.7
rmagick-2.13.1
In irb can include library:
irb(main):002:0> require 'RMagick'
=> true
In rails 2 rmagick is available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
将
或
添加到您的
Gemfile
中,然后运行add
or
to your
Gemfile
and then run安装
首先
install
first
对于使用 Heroku 的用户:
此外,无论您在何处使用它,都请包含以下内容:
For those using Heroku:
Also, include the following wherever you're using it:
对于现在阅读本文的任何人来说,我在安装 libmagick9-dev 时遇到了问题(它似乎已被替换)。
我运行了以下命令并成功安装:
干杯
For anyone reading this now, I was having issues installing
libmagick9-dev
(it appears to have been replaced).I ran the following and it installed successfully:
Cheers
当为像Redmine这样的应用程序运行bundle时,gem可能是可选的,所以你必须像这样包含它:
考虑到它存在于你的Gemfile中,它应该看起来像什么
喜欢:
When running bundle for an application like Redmine, gem might be optional, so you must include it like:
Considering that it exists in your Gemfile, it should look something
like: