I just installed ruby with the Heroku Toolbelt, probem is that when I do bundle install
it gives me this error:
sh.exe": /c/Program Files (x86)/ruby-1.9.3/bin/bundle: "c:/Program: bad interpreter: No such file or directory
Acording to this question Bundle command not found. Bad Interpreter I should change the PATH, but I dont know how to do this, I have changed windows PATH enviorment variable, even changed to C:\ruby-1.9.2\bin I get a similar error:
sh.exe": /c/ruby-1.9.3/bin/bundle: "c:/Program: bad interpreter: No such file or directory
When I try to reinstall the Toolbelt I change the install direcotry to c:\ but still the wizard install git and ruby folders at Program Files (x86) directory.
Any suggestions?
For Windows users:
I used gitbash to install bundler.
and the bundler was installed successfully. Even after that i was facing the same issue.
Found out that it was due to some permission issue in my case.
Here is what i did:
Hope this is helpful to anyone.
Well I found the solution, so I'm posting here. Problem seems to be the bunlder installation in windows x64 machines, to solve this I did this.
Copy the following directories to C:/
Change windows environment "Path" variable, to do this right click Computer > Properties > Advance Settings > environment variables. Path is under "System Variables" section. Edit them to this:
Go to C:\ruby-1.9.2\bin and open the "bunlde" file with note pad (not the bundle.bat), change the first line from
#!"c:/Program Files (x86)/ruby-1.9.2/bin/ruby.exe"##
to!#!c:/ruby-1.9.2/bin/ruby.exe##
Now go to C:\Git and change the properties (right click > properties) of the Git Bash direct access, and change the target from
C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"
toC:\Windows\SysWOW64\cmd.exe /c ""C:\Git\bin\sh.exe" --login -i"
Hope it helps someone
I had these issues, and for me the only problem was the spaces in the file paths. Simply adding 's around the path fixed the problem for me:
'C:\Program Files (x86)\git\bin';'C:\Program Files (x86)\Heroku\ruby-1.9.2\bin'
That's it!
You probably don't have the Bundler gem installed.
Assuming you have Ruby installed:
gem install bundler
should do the trick.