Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can’t run ”gem install bundle’ in git bash terminal

Tags:

I'm new to Web development with Sinatra. I've been trying to run bundle install command in git-bash terminal, but it's says that:

**bash: bundle:** command not found

I've then tried to install bundler but then I'm kept getting this error:

**bash: gem:** command not found

I can't even run gem install bundler command in git-bash terminal. Please tell me what to do ??

I'm working on windows 7 x64bit system.

like image 928
Mohammad Zain Abbas Avatar asked Dec 11 '16 07:12

Mohammad Zain Abbas


1 Answers

Make sure that:

  • Ruby for Windows is installed
  • your %PATH% is modified to reference ruby (Advanced System Settings / Environment Variables / System Variables / Path: enter: C:\Path\to\Ruby\bin;)
  • rubygem is installed. (If you use rubyinstaller, that should be already the case)

Then open a new CMD session, and type bash (the bash from Git should open).
Then ruby should be available, including gem.

like image 66
VonC Avatar answered Oct 11 '22 13:10

VonC