Git Bash giving sh.exe: ruby: command not found

I am using Git Bash on Windows Vista Business. I am trying to install Redmine. Basically on step 4, I need to get RubyGem installed before I install the bundler as part of the dependency install (http://www.redmine.org/projects/redmine/wiki/RedmineInstall). I downloaded rubygems-2.2.2.zip from https://rubygems.org/pages/download. Then I unzipped the file a folder on my desktop.

In Git Bash, I typed ruby setup.rb, I get sh.exe: ruby: command not found. Is it something related to the PATH environment? If so, how do I include it so that Git Bash will see the setup file and run it?

  • Write a Makefile to pick up the file name automatically and create corresponding executable with same name
  • Cloning a GIT branch to another repositories GIT branch?
  • Rename folder in Git. All branches and all revisions
  • How to effectively organize scripts so they can be put under version control?
  • Keep being prompted to enter passphrase for .ssh/id_rsa
  • git error: “fatal: not a valid revision”
  • Ruby 1.9.3- p545 is already installed.

    Thanks in advance.

  • Puppet Modules - Best Practices for Installing External Modules and Downloading Packages
  • How to Fork a project and then create another fork project inside that fork project
  • How to git rm files that are on remote origin but not in local?
  • Issue using GIT with GRUNT automated task
  • git: update the root directory of a branch from the subdirectory of another
  • Setting up GIT branches properly for development of application
  • One Solution collect form web for “Git Bash giving sh.exe: ruby: command not found”

    If you already installed ruby, you have to include correct path.

    Right click My Computer, click Properties, go to Advanced System Settings left navigation, click on Environment Variables... button, go to System Variables below, select Path, click Edit and in the beginning of the path enter: C:\Ruby200\bin; (Please note that in here you should indicate the ruby executable path. In case you installed ruby using Ruby installer for windows then the above mentioned path is correct).

    Git Baby is a git and github fan, let's start git clone.