ruby on rails - Error Installing RVM through Cygwin in Windows -
After
I am trying to install RVM via Cygwin, the following.
After creating the directory and closing the Git repository, I need to run ./osx_or_cygin_kick_off to start the installation process.
This is the error message I'm getting:
$ ./osx_or_cygwin_kick_off ./automation/rvm/rvm_install: Line 2: $ '\ r': Command not found. / Automation / rvm / rvm_install: line 3: syntax unexpected token 'error with' $ '\ r' '' / automation / rvm / rvm_install: line3: `install_rvm () ./automation/rvm/rvm_install_some_rubies: line 2: $ '\ R': Command not found ./automation/rvm/rvm_install_some_rubies: Line 3: Unexpected token 'Syntax error near $ `\ /' automation / rvm / rvm_install_some_rubies: line3:` install_some_rubies () I have read somewhere that the files are unix self To convert through the dock in Form 2 can solve the problem, but it is only made more error messages.
Any suggestions?
edit: The problem is that Some Sigwin GIT installations try to spell the linefeed handling to fix Git, then it stops mangling the line end, run:
Git config --global core.autocrlf false The original answer has been made more general after comment explanation: CRLF ( \ r \ n ) in the file There are end-line sequences, which are common on Windows Bus do not like it, though; Unix (and signin) just want LF ( \ n ). I assume that you have cut and pasted that file, or it has been downloaded through some mechanism which adds to the end of the Windows line. To fix files in Sigwin:
tr - d '\ r' & lt; File name & gt; Check filename.tmp and make sure filename.tmp is OK, then it looks:
mv -f file name .tmp Alternatively, download a browser and save it (instead of cut and paste), or from the Saginook shell, using curl or wget . In all the above cases, you probably will not have an executable file (just readable). You can either make executable with:
chmod 755 file name or explicitly open it:
Sh filename You will often run into this problem if you use the Windows Editor to manipulate your signin files. Editors inside Saigwin will be cured (such as Vim). Alternatively, many free Windows editors help in the end of the Unix line. Good with a Unix line-ending option.
Comments
Post a Comment