簡體   English   中英

安裝RVM:“需求安裝失敗,狀態為:1。”

[英]Installing RVM: “Requirements installation failed with status: 1.”

這是我在命令提示符之前看到的最后一件事:

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.

我認為它沒有達到我按Enter鍵的程度

如果有其他人遇到這個特殊的“狀態:1”錯誤(我知道有很多人收到了這個,但似乎有不同的原因)...我可以確認depa的評論並將添加它以創建問題的答案:

我只需要使用brew.sh中的命令自己安裝Homebrew:

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

然后,當我再次運行RVM安裝命令時,它工作正常。

由於某種原因,似乎RVM在我的機器上安裝Homebrew時遇到了問題。

剛剛運行Drewdavid的命令並收到以下內容:

哎呀,Homebrew安裝程序已經移動了! 請改為運行:

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

此外,請詢問您從哪里獲得此鏈接以將其更新為上述內容。

我手動打開Xcode並確認許可協議以使其正常工作。

我剛剛去了: https//developer.apple.com/download/more/?= for%20Xcode並安裝了最新的命令行工具並重新安裝了它並且工作正常。

對於在Amazon Server或Linux上部署的人員需要使用

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

接下來是brew install gcc ,然后重啟你的系統(注銷並登錄)然后rvm install ruby -version

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM