ruby on rails - rmagick gem installed on windows but bundle fails -


from rails , bundler newbie.

i able install rmagick 2.13.2 on ms windows 7 with:

gem install rmagick -v 2.13.2 -- --with-opt-lib=c:/imagemagick/lib --with-opt-include=c:/imagemagick/include --local 

which worked, shown in output:

temporarily enhancing path include devkit... building native extensions.  take while... installed rmagick-2.13.2 1 gem installed installing ri documentation rmagick-2.13.2... installing rdoc documentation rmagick-2.13.2... 

but can't bundler use gemfile, contains line:

gem "rmagick" 

but command:

bundle install --path vendor/bundle/ 

faults on rmagick this:

installing rmagick (2.13.2) gem::installer::extensionbuilderror: error: failed build gem native extension .      c:/railsinstaller/ruby1.9.3/bin/ruby.exe extconf.rb checking ruby version >= 1.8.5... yes checking stdint.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=c:/railsinstaller/ruby1.9.3/bin/ruby c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': compiler  failed generate executable file. (runtimeerror) have install development tools first.     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'      c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:931:in `block in  have_header'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:790:in `block in  checking_for'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:284:in `block (2  levels) in postpone'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:254:in `open'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:284:in `block in  postpone'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:254:in `open'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:280:in `postpone '     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:789:in `checking _for'     c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/mkmf.rb:930:in `have_hea der'     extconf.rb:194:in `<main>'   gem files remain installed in c:/ew/j2ee/axxon.dash/vendor/bundle/ruby/1.9. 1/gems/rmagick-2.13.2 inspection. results logged c:/ew/j2ee/axxon.dash/vendor/bundle/ruby/1.9.1/gems/rmagick-2. 13.2/ext/rmagick/gem_make.out error occurred while installing rmagick (2.13.2), , bundler cannot continue. make sure `gem install rmagick -v '2.13.2'` succeeds before bundling. 

also,

>gem list rmagick  *** local gems ***  rmagick (2.13.2) 

i checked , rmagic seems installed in vendor\bundle\ruby\1.9.1\gems\rmagick-2.13.2

so if it's installed, why bundle install complaining? can cheat bundler , force recognize i've done or something?

tia.

you should define rmagick gem :

gem 'rmagick', '~> 2.13.2', :platforms => :ruby gem 'rmagick', '=2.13.2.mswin32', :platforms => :mswin 

hope help.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -