【问题标题】:Installing RVM - No Output, Failure安装 RVM - 无输出,失败
【发布时间】:2017-02-08 01:05:20
【问题描述】:

我在 MacOS Sierra 上

brew医生说没问题

xcode/gcc 已安装

我的第一个问题是no response when I use curl

还有here is what I get when I trace the installation

安装完成后,我重新启动终端并尝试使用'source ~/.rvm/scripts/rvm',但出现错误'No such file or directory'

我尝试删除目录并重新安装几次,但没有成功。

编辑:如果我不使用 -sSL,我会得到两行输出,但仍然没有运气:imgur.com/a/bxyLy

EDIT2:https://github.com/rvm/rvm/issues/3910 允许安装

【问题讨论】:

    标签: ruby-on-rails ruby rvm


    【解决方案1】:

    用rbenv代替rvm,rbenv比rvm最合适。

    自制设置:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    rbenv 设置:

    brew install rbenv ruby-build
    
    # Add rbenv to bash so that it loads every time you open a terminal
    echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
    source ~/.bash_profile
    
    # Install Ruby
    rbenv install 2.4.0
    rbenv global 2.4.0
    ruby -v
    

    【讨论】:

    • rbenv 和 rvm 是不同的工具。谴责问题所涉及的工具并描述一个完全不同的工具对 OP 没有多大帮助,也不是对他们问题的有效答案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-06-13
    • 1970-01-01
    • 1970-01-01
    • 2012-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多