rvm安装:is_a_function:找不到命令

Kar*_*k S 4 ruby macos rvm osx-lion

安装rvm后,使用以下命令:

$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > rvm-installer
$ bash rvm-installer 
Run Code Online (Sandbox Code Playgroud)

我按照rvm网站的建议做了以下操作:

$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ source .bash_profile 
-sh: is_a_function: command not found
Run Code Online (Sandbox Code Playgroud)

当我查看安装输出时,我发现在安装期间也报告了此错误(尽管我也看到:"将RVM安装到/Users//.rvm/已完成.")

我查看了rvm脚本,我能够在实用程序脚本中看到函数is_a_function.

请告知我现在需要做些什么来解决这个问题.

PS:我不得不在本地下载安装程序,因为我一直收到以下错误:

$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
-sh: syntax error near unexpected token `<'
Run Code Online (Sandbox Code Playgroud)

小智 7

我得到了同样的错误,但切换到稳定版本似乎修复了它.

工作了:

sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Run Code Online (Sandbox Code Playgroud)