Unable to Install RubyGems

thefinestgirls's Avatar


20 Nov, 2011 06:04 PM


I downloaded the zip file containing Ruby Gems and unpacked everything, enabled full permission, CD'd to the directory but I am unable to run "ruby setup.rb " I receive the following message 'ruby' is not recognized as an internal or external command,
operable program or batch file. Is there something else I need to do to set it up?

  1. 1 Posted by Luis Lavena on 20 Nov, 2011 07:14 PM

    Luis Lavena's Avatar


    You didn't provide information about your environment, so I assume you're
    using Windows.

    RubyGems is part of RubyInstaller, so you don't need to manually install

    The error you're getting is because Ruby is not in the PATH.

    During installation you're offered to add it to the path. You csb aldi use
    the specific command prompt shortcut.

  2. 2 Posted by thefinestgirls on 21 Nov, 2011 03:38 AM

    thefinestgirls's Avatar


    Yes, you are correct. I am using Win 7 64bit. I am attempting to use RubyGems to install Foreman in order to run and test a Facebook App locally. The instructions specify running the install in RubyGems. https://github.com/ddollar/foreman

    • Rubygems gem install foreman
  3. 3 Posted by Luis Lavena on 21 Nov, 2011 10:11 AM

    Luis Lavena's Avatar

    Foreman will not work on Windows.

    It uses background process approach which do not successfully work or apply to Windows.

    You can simulate what foreman does with multiple consoles.

    Again, you don't need to install RubyGems, is part of the Ruby provided by RubyInstaller.

    Closing this out.

  4. Luis Lavena closed this discussion on 21 Nov, 2011 10:11 AM.

  5. thefinestgirls re-opened this discussion on 23 Nov, 2011 05:06 AM

  6. 4 Posted by thefinestgirls on 23 Nov, 2011 05:06 AM

    thefinestgirls's Avatar

    Hi Luis, I am resubmitting "Unable to Install RubyGems" from the following http://tinyurl.com/brvpwzg - You stated that "Foreman will not work on Windows" Actually there is a version of Foreman that works with windows https://github.com/ddollar/foreman-windows - Is there a link to the ruby installer? Instructions include the following - (Rubygems) gem install foreman

  7. 5 Posted by Luis Lavena on 23 Nov, 2011 10:07 AM

    Luis Lavena's Avatar


    I was not aware of fiteman-Windows project, however, looking at the code it
    is clear is not part of the gem.

    Please ask them gem author where to get the executable or installer for it.

  8. 6 Posted by Luis Lavena on 23 Nov, 2011 10:11 AM

    Luis Lavena's Avatar

    As for RubyInstaller go here:


    Probably you already have it since is the version of ruby recommended at ruby-lang.org

  9. Luis Lavena closed this discussion on 23 Nov, 2011 10:12 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac