ruby 安装 RVM:“要求安装失败,状态:1。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22776751/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing RVM: "Requirements installation failed with status: 1."
提问by Drewdavid
Here is the last thing I saw before the command prompt:
这是我在命令提示符之前看到的最后一件事:
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for osx.
About to install Homebrew, press `Enter` for default installation in `/usr/local`,
type new path if you wish custom Homebrew installation (the path needs to be writable for user)
: Requirements installation failed with status: 1.
I don't think it made it to the point that I could press Enter
我不认为它达到了我可以按 Enter 的程度
回答by Drewdavid
If anyone else encounters this particular "status: 1" error (I know a number of people have received this, but it seems for different reasons)... I can confirm depa's comment and will add to it to create an answer to the question:
如果其他人遇到这个特定的“状态:1”错误(我知道有很多人收到了这个错误,但似乎是出于不同的原因)......我可以确认 depa 的评论并将添加到它以创建问题的答案:
I just had to install Homebrew myself using the command from brew.sh:
我只需要使用brew.sh 中的命令自己安装 Homebrew :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then when I ran the RVM install command again it worked fine.
然后当我再次运行 RVM 安装命令时,它工作正常。
It seems RVM had a problem installing Homebrew on my machine for some reason.
由于某种原因,RVM 似乎在我的机器上安装 Homebrew 时出现问题。
回答by zardoz
Just ran Drewdavid's command and received the following:
刚刚运行 Drewdavid 的命令并收到以下信息:
Whoops, the Homebrew installer has moved! Please instead run:
哎呀,Homebrew 安装程序已经移动了!请改为运行:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Also, please ask wherever you got this link from to update it to the above.
另外,请询问您从何处获得此链接以将其更新为上述链接。
回答by Jason Stokes
I opened Xcode manually and OK'd the license agreement to get it working properly.
我手动打开 Xcode 并确定许可协议以使其正常工作。
回答by yahya
I just went to: https://developer.apple.com/download/more/?=for%20Xcodeand installed the latest Command line tools and retried the install and it worked.
我刚刚去了:https: //developer.apple.com/download/more/?=for%20Xcode并安装了最新的命令行工具并重试安装,它工作正常。
回答by Aman Relan
For people deploying on Amazon Server or on linux needs to use
对于部署在 Amazon Server 或 linux 上的人需要使用
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
Followed by brew install gcc, then Restart your system(logout and log in) and then rvm install ruby -version
其次是brew install gcc,然后重新启动系统(注销并登录)然后rvm install ruby -version

