安装了rvm之后,使用以下命令:
$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > rvm-installer
$ bash rvm-installer
我按照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
当我查看安装输出时,我发现在安装过程中也报告了这个错误(虽然我也看到:“将 RVM 安装到 /Users//.rvm/ 完成。”)。
我查看了 rvm 脚本,能够看到 utility 脚本中的 is_a_function 函数。
请指导我现在需要做什么来修复这个问题。
附注:由于我一直收到以下错误消息,所以不得不将安装程序下载到本地:
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
-sh: syntax error near unexpected token `<'
"Installation of RVM to /Users//.rvm/ is complete."
看起来有点不对。RVM实际上安装到了哪里?你应该将[[ -s "$HOME/.rvm/scripts/rvm"...
内容添加到你的.bashrc文件中(这样每次启动BASH时都会自动调用它,而不需要从命令行显式调用它)。 - Michael Dautermann