加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby -rvm安装:is_a_function:找不到命令

发布时间:2020-12-17 02:42:52 所属栏目:百科 来源:网络整理
导读:安装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
安装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脚本,我能够在实用程序脚本中看到函数is_a_function.

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

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

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

解决方法

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

工作了:

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读