Error occurred while installing rmagick
Try this:
apt-get install libmagickwand-dev
gem install rmagick
Installing RMagick Gem
use rvm to install ruby (preferred) or use apt-get install ruby ruby-dev
aptitude install build-essential imagemagick libmagickcore-dev libmagickwand-dev
gem install rmagick
--Edit 1--
sudo apt-get install ruby-dev
You will also need ruby-dev (or ruby-full) for successfully compiling the RMagick before gem install.
How to install rmagick gem on Windows?
RMagic won't work with ImageMagic 6.8. I updated the RMagick Github wiki with detailed instructions.
https://github.com/rmagick/rmagick/wiki
There I found gems (haha) such as
If ImageMagick isn't first in your system path, you'll get an "Invalid
drive specification" error when extconf.rb tries to identify the
ImageMagick version.
and
gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
(Obvious, huh?)
I believe RMagick is a dead project. There hasn't been a commit for 2 years!
ImageMagick : ERROR: Failed to build gem native extension
OK GUYS I MANAGED TO INSTALL IT.
Please follow this guide.
Step 1: Download and install this
ImageMagick-6.9.8-3-Q16-HDRI-x64-dl
Step 2: Set and create a new Environment variable called CLASSPATH and the value set it to
.;C:\ImageMagick-6.9.8-Q16-HDRI\include;lib C:\ImageMagick-6.9.8-Q16-HDRI\lib
Step 3: gem install it
gem install rmagick --platform=ruby -- --with-opt-lib=C:\ImageMagick-6.9.8-Q16-HDRI\lib --with-opt-include=C:\ImageMagick-6.9.8-Q16-HDRI\include
IMPORTANT TAKE NOTE!!!
when you download and install ImageMagick make sure you type the version number exactly when setting your path and gem install.
Example like ImageMagic-6.9.8-3-Q16-HDRI, follow exactly.
Related Topics
Can't Use Compass After Installing It
How to Recompile a Ruby with Rvm
Rails: How to Show User's "Last Seen At" Time
Sorting: Sort Array Based on Multiple Conditions in Ruby
How to Use Define_Method Inside Initialize()
Possible to Alias a Belongs_To Association in Rails
Rails Belongs_To Association (With :Class_Name) Returns Nil
Group_By in Rails by 2 or More Attributes
Heroku Gem Not Working with Rvm
What Is Double Method in Rspec For
How to Introspect Things in Ruby
Code to Generate Gaussian (Normally Distributed) Random Numbers in Ruby