From: Kaye Ng Date: 2011-10-16T11:10:51+09:00 Subject: 'gem install' help please Hi. When I type 'gem install RedCloth' in the command line, I get this: --------------------------------------------------------------------------- C:\Users\Kaye>gem install RedCloth Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for main() in -lc... *** 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. 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:/Ruby192/bin/ruby --with-redcloth_scan-dir --without-redcloth_scan-dir --with-redcloth_scan-include --without-redcloth_scan-include=${redcloth_scan-dir}/include --with-redcloth_scan-lib --without-redcloth_scan-lib=${redcloth_scan-dir}/lib --with-clib --without-clib C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to genera te an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:440:in `try_link' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:552:in `try_func' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:748:in `block in have_library' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postp one' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:743:in `have_library' from extconf.rb:5:in `
' Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/RedCloth- 4.2.8 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.8/ext/redclot h_scan/gem_make.out C:\Users\Kaye> ------------------------------------------------------------------------- I have no idea why this happened and no idea how to install it properly. I'm just following instructions from a book. If you have the time, please elaborate on your answers. Thanks guys!!! -- Posted via http://www.ruby-forum.com/.