无法在Mac OS X Lion上安装RVM

1 ruby bash shell installation rvm

我在Mac OS X Lion上,我无法安装RVM.我按照RVM网站上的安装指南,尝试了zshbash,并在第一步遇到了同样的问题:

$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Successfully checked out branch ''
Current branch master is up to date.
Successfully pulled (rebased) from origin 
bash: ./scripts/install: /bin/bash^M: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)

但是,如果我进入目录/bin,该程序bash就在那里.

任何人都知道这里发生了什么?

avy*_*avy 5

你必须配置git.

git config --global core.autocrlf input
git config --global core.safecrlf true
Run Code Online (Sandbox Code Playgroud)

然后rm -rf ~/.rvm尝试再次安装rvm.