我在 MacOS Sierra 上
酿造医生说没问题
xcode/gcc 已安装
我的第一个问题是 no response when I use curl .
和here is what I get when I trace the installation .
安装完成后,我重新启动终端并尝试使用“source ~/.rvm/scripts/rvm”,但出现错误“没有这样的文件或目录”
我曾尝试删除该目录并重新安装几次,但都没有成功。
编辑:如果我不使用 -sSL,我会得到两行输出,但仍然没有运气:imgur.com/a/bxyLy
最佳答案
用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
关于ruby-on-rails - 安装 RVM - 无输出,失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42102892/