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!
To fix the error in the Windows operating system, open the bash script file in the Notepad++ editor and then go to the preferences tab via the settings menu as below. Close the window after choosing Unix/OSX as the format. Afterwards, save and close the file.
log No such file or directory” the problem is most likely on the client side. In most cases, this simply indicates that the file or folder specified was a top-level item selected in the backup schedule and it did not exist at the time the backup ran.
bad interpreter no such file or directory. It is caused by the presence of the Window return character (^M) that is ending the line. This mostly occurs when copying and pasting an unknown source file into the operating system. The window return can be removed by simply executing the command: sed -i -e 's/r$//' filename ...
No such file or directory" means that either the executable binary itself or one of the libraries it needs does not exist. Libraries can also need other libraries themselves. then the problem can be fixed by making sure the mentioned libraries are installed and in the library search path.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With