From: Luis Lavena Date: 2011-10-16T20:07:24+09:00 Subject: Re: 'gem install' help please Kaye Ng wrote in post #1026815: > 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. > "Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. " [...] "You have to install development tools first." This might provide some information. Are you using Ruby 1.9.2 provided from RubyInstaller? http://rubyinstaller.org/downloads If so, then you should have installed DevKit, available in the same page and with installation instructions here: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit If you followed all the instructions, there is a high chance the problem you're having is covered in RubyInstaller's troubleshooting page: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun Please check all the other elements from above wiki page for other issues. -- Luis Lavena -- Posted via http://www.ruby-forum.com/.