Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have vista and trying to install ruby gem - 'rdiscount' and get following error...what's the answer for this?

$ gem install rdiscount Building native extensions. This could take a while... ERROR: Error installing rdiscount: ERROR: Failed to build gem native extension.

c:/Ruby/bin/ruby.exe extconf.rb checking for random()... no checking for srandom()... no creating Makefile

nmake 'nmake' is not recognized as an internal or external command, operable program or batch file.

Gem files will remain installed in c:/Ruby/lib/ruby/gems/1.8/gems/rdiscount-1.5.5 for inspection. Results logged to c:/Ruby/lib/ruby/gems/1.8/gems/rdiscount-1.5.5/ext/gem_make.out
share|improve this question
up vote 1 down vote accepted

RDiscount will not be an easy port for Windows. It uses a POSIX function that is not available under Windows, even if you adjusted most of it.

I would recommend usage of BlueCloth, latest version, also in combination with newer RubyInstaller version of Ruby, which uses GCC and can compile gems that require it.

I've mentioned this issue on the RubyInstaller group before.

Please grab the newer installer from and the DevKit too

Follow the instructions for installation from the wiki page (Development Kit)

Hope that helps, cannot put links to the references.

share|improve this answer

RubyInstaller's DevKit can now install rdiscount:

Below are instructions for installing DevKit and using it to install rdiscount:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.