[ACCEPTED]-How fix error "no such file to load -- RMagick"?-rmagick

Accepted answer
Score: 14

add

gem 'RMagick'

or

gem "rmagick", "~> 2.13.1"

to your Gemfile and then run

bundle

0

Score: 5

install

apt-get install libmagick9-dev 

first

0

Score: 3

For those using Heroku:

gem "rmagick", "~>2.13.2", :require => 'RMagick'

Also, include the 1 following wherever you're using it:

require 'RMagick'
Score: 2

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

Score: 0

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

More Related questions