when I run gem install rmagick-2.13.1.gem
from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, belo
Exactly same problem.The "Read Me" in the downloaded Zip file now contains only this:
Hi, everyone -
We are no longer able to maintain RMagick and are looking for someone or some people to take over maintenance of it. If you're interested or want more details, please let us know at admin@obtdev.com!
It is a cool project, written in C and Ruby, with lots of great developers relying on it. The code, originally written by Tim Hunter, is clean and easy-to-understand, and there are a lot of directions you could take it to make it even more useful.
We've had to stop maintaining it due to ever-increasing constraints on our time.
Thanks, - Benjamin and Omer.
Try
gem install win32-service --platform=mswin32
gem install rmagick --platform=mswin32
Download zip file from: https://github.com/rmagick/rmagick/downloads
Unzip it in a local directory
CD to that directory and type
gem install rmagick --local
Done.
If you get errors you might want to read the Readme.html file in the Zipfile
First of all clear your path environment variables. (This is the main step that people often skip, but very important). This is the main reason for the error you're facing.
Then install the rails installer (2.0.0) from here : http://railsinstaller.org/en
It'll set up ruby, rails, and everything else you need. This will also set up your environment path variables for you as well.
Next install imagemagick 6.7.9.9 or lower and while installing check the option to include C headers. Make sure you install it within the rails installer folder.
Then type this in your command prompt path=c:\RailsInstaller\ImageMagick-6.7.9-Q8;%path%
or whatever version you have.
Then type
gem install rmagick -- '--with-opt-dir="c:\RailsInstaller\ImageMagick-6.7.9-Q8"'
Finally edit C:\RailsInstaller\Ruby2.0.0\setup_environment.bat to include the path to ImageMagic
At line 25: SET PATH=c:\RailsInstaller\ImageMagick-6.7.9-Q8;
or whatever version you have
use rmagick2 for Ruby 1.8.2 and later, including Ruby 1.9 ImageMagick 6.3.0-7 or later RMagick 2 is the future of RMagick. This is the version that will get new methods and support new ImageMagick features.