Failed to install rmagick, ruby ​​1.9, rails 3, windows

I was looking for time to search, but could not find anything that worked.

Basically, when I put the gem 'rmagick' in my gemfile and run the package installation, 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 create native extension gem. (Gem :: Installer :: ExtensionBuildError)

C: /Ruby192/bin/ruby.exe extconf.rb checking for Ruby version> = 1.8.5 ... yes Invalid disk specification. Failed to get ImageMagick version * extconf.rb failed * Failed to create Makefile for some reason, possibly necessary libraries and / or headers. Check the mkmf.log file for more information. Details You may need configuration options.


I went to the RMagick website and installed the Windows binary pearl. but it still doesn't work.

What should I do?

Edit: I need rmagick for simple_captcha

+6
source share
2 answers

Well, finally it worked. This is what ultimately helped me figure this out.

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

Funny, I ended up abandoning simple_captcha due to other issues. Using third-party plugins involves far greater headaches than I thought ...

+2
source

First you need to install ImageMagick.

0
source

Source: https://habr.com/ru/post/891165/


All Articles