Installing rmagick gem on windows 7 rails 4 ruby 1.9.3 -


i trying install rmagick gem https://github.com/rmagick/rmagick use carrierwave gem https://github.com/carrierwaveuploader/carrierwave image uploads.

i following railscast http://railscasts.com/episodes/253-carrierwave-file-uploads , can't images display through index page in app.

i need install rmagick image resizing following error when running bundle command following declared in gem file: gem 'rmagick', '2.13.2'. has got suggestions resolving error? in advance guys:

fetching gem metadata https://rubygems.org/....... fetching gem metadata https://rubygems.org/.. resolving dependencies... using rake (10.1.0) using i18n (0.6.5) using minitest (4.7.5) using multi_json (1.8.2) using atomic (1.1.14) using thread_safe (0.1.3) using tzinfo (0.3.38) using activesupport (4.0.0) using builder (3.1.4) using erubis (2.7.0) using rack (1.5.2) using rack-test (0.6.2) using actionpack (4.0.0) using mime-types (1.25) using polyglot (0.3.3) using treetop (1.4.15) using mail (2.5.4) using actionmailer (4.0.0) using activemodel (4.0.0) using activerecord-deprecated_finders (1.0.3) using arel (4.0.1) using activerecord (4.0.0) using bcrypt-ruby (3.1.2) using debug_inspector (0.0.2) using binding_of_caller (0.7.2) using sass (3.2.12) using bootstrap-sass (3.0.2.0) using bundler (1.3.4) using carrierwave (0.6.2) using climate_control (0.0.3) using cocaine (0.5.3) using coffee-script-source (1.6.3) using execjs (2.0.2) using coffee-script (2.2.0) using thor (0.18.1) using railties (4.0.0) using coffee-rails (4.0.1) using columnize (0.3.6) using debugger-linecache (1.2.0) using debugger-ruby_core_source (1.2.4) using debugger (1.6.2) using orm_adapter (0.4.0) using warden (1.2.3) using devise (3.1.1) using hike (1.2.3) using jbuilder (1.5.2) using jquery-rails (3.0.4) using jquery-ui-rails (4.1.1) using json (1.8.1) using paperclip (3.5.2) git://github.com/thoughtbot/paperclip.git (at maste r) using protected_attributes (1.0.3) using tilt (1.4.1) using sprockets (2.10.0) using sprockets-rails (2.0.1) using rails (4.0.0) using rdoc (3.12.2) 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:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9 .1/gems/rmagick-2.13.2 inspection. results logged c:/railsinstaller/ruby1.9.3/lib/ruby/gems/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. 

it appears haven't installed ruby devkit windows package - see here info on this. need install imagemagick before attempt install rmagick gem (you did right?).

there gem minimagick give similar functionality within carrierwave rmagick, , i've found use less of memory footprint. , has added benefit doesn't need build native extensions (so can skip devkit this).


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -