[ACCEPTED]-How fix error "no such file to load -- RMagick"?-rmagick
Accepted answer
add
gem 'RMagick'
or
gem "rmagick", "~> 2.13.1"
to your Gemfile
and then run
bundle
0
install
apt-get install libmagick9-dev
first
0
For those using Heroku:
gem "rmagick", "~>2.13.2", :require => 'RMagick'
Also, include the 1 following wherever you're using it:
require 'RMagick'
For anyone reading this now, I was having 3 issues installing libmagick9-dev
(it appears to have been 2 replaced).
I ran the following and it installed 1 successfully:
sudo apt-get install libmagickcore-dev
sudo apt-get install graphicsmagick-libmagick-dev-compat
sudo apt-get install libmagickwand-dev
sudo apt-get install imagemagick
gem install rmagick
Cheers
When running bundle for an application like 3 Redmine, gem might be optional, so you must 2 include it like:
bundle install --with rmagick
Considering that it exists 1 in your Gemfile, it should look something like:
group :rmagick do
gem "rmagick", "~> 2.16.0"
end
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.