Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install rmagick, ruby 1.9, rails 3, windows

I've been googling for a while but couldn't find anything that works.

Basically, when I put gem 'rmagick' in my gemfile and run bundle install, I get the following error message:


Installing rmagick (2.13.1) with native extensions C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in buil d_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

C:/Ruby192/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5... yes Invalid drive specification. Unable to get ImageMagick version * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.


I went to the RMagick site and installed the windows binary gem. but it still doesn't work.

What should I do?

Edit: I need rmagick for simple_captcha

like image 853
Max Avatar asked Jun 22 '11 22:06

Max


1 Answers

Alright finally got it to work. This is what ended up helping me get it right.

http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/

Funny thing is, I ended up giving up simple_captcha because of other problems. Using third party plugins involves much bigger headaches than I thought...

like image 125
Max Avatar answered Oct 22 '22 21:10

Max