Menu icon Foundation
Gem or Foundation: Command not found with Git Bash? Try this

Ok so I was going crazy the other day because I couldn't figure out why in the world my setup on my new computer was not working via git bash. I couldn't figure out what was the problem. Everything was installed. And you need bower and grunt to get going even if you plan on using libsass as your compiler.

After searching and searching for answers these are the two that came up for me that answer my question. Specifically this one. The whole point of the issue is Ruby commands won't run from Git bash unless the proper path is set up. Now, I didn't have this problem with another install of the same version of ruby but for some reason when I installed the setup again I couldn't get it going until this fix.

Also here is a more updated version of git as well when compared to their site. That is another thing that was weird to me. http://msysgit.github.io/ The site of git says 1.9.2 but gives you actually 1.9.0 as a download. This site given here gives the correct version. perhaps that had something to do with it.

********** From Stack http://stackoverflow.com/questions/3426347/how-to-run-ruby-and-git-commands-in-one-place-on-windows/10159798#10159798

To elaborate on VonC's answer of making Ruby available in Git-Bash.

All you have to do is add the path to your Ruby bin folder in your windows environment variables. It doesn't have to be in the format /c/path/to/ruby, it can be C:\Ruby193\bin.

Step by step for Windows 7:

Start
Search programs and files (default textbox after hitting the Start icon), Search for 'environment'
Select 'edit the system environment variables'
Click 'Environment Variables' (bottom right of the form)
Add to the 'System Variables' 'PATH' the following ';C:\Ruby193\bin' (without the single quotes)
Restart your shell
Make sure to close your git-bash shell and restart it to pick up the new environment variable.

******

gitbashFoundation

Ok so I was going crazy the other day because I couldn't figure out why in the world my setup on my new computer was not working via git bash. I couldn't figure out what was the problem. Everything was installed. And you need bower and grunt to get going even if you plan on using libsass as your compiler.

After searching and searching for answers these are the two that came up for me that answer my question. Specifically this one. The whole point of the issue is Ruby commands won't run from Git bash unless the proper path is set up. Now, I didn't have this problem with another install of the same version of ruby but for some reason when I installed the setup again I couldn't get it going until this fix.

Also here is a more updated version of git as well when compared to their site. That is another thing that was weird to me. http://msysgit.github.io/ The site of git says 1.9.2 but gives you actually 1.9.0 as a download. This site given here gives the correct version. perhaps that had something to do with it.

********** From Stack http://stackoverflow.com/questions/3426347/how-to-run-ruby-and-git-commands-in-one-place-on-windows/10159798#10159798

To elaborate on VonC's answer of making Ruby available in Git-Bash.

All you have to do is add the path to your Ruby bin folder in your windows environment variables. It doesn't have to be in the format /c/path/to/ruby, it can be C:\Ruby193\bin.

Step by step for Windows 7:

Start
Search programs and files (default textbox after hitting the Start icon), Search for 'environment'
Select 'edit the system environment variables'
Click 'Environment Variables' (bottom right of the form)
Add to the 'System Variables' 'PATH' the following ';C:\Ruby193\bin' (without the single quotes)
Restart your shell
Make sure to close your git-bash shell and restart it to pick up the new environment variable.

******