安装RVM我试图通过Cygwin来安装RVM,以下this tutorial。错误通过Cygwin的在Windows
后创建目录和克隆Git仓库,我需要运行./osx_or_cygin_kick_off开始安装过程。
这是错误消息我得到:
$ ./osx_or_cygwin_kick_off
./automation/rvm/rvm_install: line 2: $'\r': command not found
./automation/rvm/rvm_install: line 3: syntax error near unexpected token `$'\r''
'/automation/rvm/rvm_install: line 3: `install_rvm()
./automation/rvm/rvm_install_some_rubies: line 2: $'\r': command not found
./automation/rvm/rvm_install_some_rubies: line 3: syntax error near unexpected token `$'\r''
'/automation/rvm/rvm_install_some_rubies: line 3: `install_some_rubies()
我读的地方,通过doc2unix的文件转换为UNIX格式可能会解决这个问题,但它只创造更多的错误消息。
有什么建议吗?
我猜你的意思是通过'dos2unix'运行,这是解决问题的方法,但由于您遇到麻烦,请尝试下面的答案我的备选方案之一。 – 2013-03-20 23:02:40