Reputation: 61
I'm working through Michael Hartl's tutorial trying to learn Rails for the first time, and I've run into some issues. I recently reinstalled the whole Rails Installer because I had apparently inadvertently deleted some important files. Now, when I try running a test I get the following error:
sh.exe": /c/Program Files (x86)/ruby-1.9.3/bin/bundle: "c:/Program: bad interpre
ter: No such file or directory
I checked my PATH and attempted to use the solution outlined here: Bundle command not found. Bad Interpreter ..but putting quotation marks around "C:\Program Files (x86)\ruby-1.9.3\bin" didn't do anything for me.
I ran $ rails -v and got the following output:
$ rails -v
←[31mCould not find multi_json-1.3.6 in any of the sources←[0m
←[33mRun `bundle install` to install missing gems.←[0m
So then I tried running $bundle install and got the following issue again:
Tom@TOM-PC /c/sample_app (updating-users)
$ bundle install
sh.exe": /c/Program Files (x86)/ruby-1.9.3/bin/bundle: "c:/Program: bad interpre
ter: No such file or directory
I'd really appreciate any help -- I've spent 5+ hours today trying to get back on track and am still at a loss. Please let me know if I'm missing any pertinent info -- Thanks!
Upvotes: 6
Views: 8875
Reputation: 64563
You need to open this file /c/Program Files (x86)/ruby-1.9.3/bin/bundle
and see, what interpreter is specified there. Probably it is something like /c/Program Files (x86)/ruby-1.9.3/bin/ruby
. You need to write \
before all spaces in the path (or the part with spaces) or put entire path in the doblequotes:
/c/"Program Files (x86)"/ruby-1.9.3/bin/ruby
Upvotes: 4