简体   繁体   English

安装RVM-无输出,失败

[英]Installing RVM - No Output, Failure

I'm on MacOS Sierra 我在MacOS Sierra上

brew doctor says no problem 酿造医生说没问题

xcode/gcc is installed xcode / gcc已安装

My first problem is no response when I use curl . 我的第一个问题是使用curl时没有响应

And here is what I get when I trace the installation . 这是我跟踪安装时得到的信息

After the installation is complete, I restart my terminal and try and use 'source ~/.rvm/scripts/rvm', but I get an error 'No such file or directory' 安装完成后,我重新启动终端并尝试使用“源〜/ .rvm / scripts / rvm”,但出现错误“无此文件或目录”

I've tried to delete the directory and re-install a couple of times, but no luck. 我试图删除该目录并重新安装了几次,但是没有运气。

EDIT: If I don't use -sSL, I get two lines of output, but still no luck: imgur.com/a/bxyLy 编辑:如果我不使用-sSL,则会得到两行输出,但仍然没有运气:imgur.com/a/bxyLy

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

Use rbenv instead of rvm, rbenv is most suitable than rvm. 使用rbenv代替rvm,rbenv比rvm更合适。

Homebrew setup: 自制程序设置:

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

rbenv setup: 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM