2016-11-28 36 views
4

我在嘗試安裝Ruby時遇到此錯誤。我試圖尋找this和​​但無濟於事無法安裝Ruby(無法下載資源「readline-patch」)

➜ ~ brew install ruby 
Warning: You are using OS X 10.12. 
We do not provide support for this pre-release version. 
You may encounter build failures or other breakages. 
Please create pull-requests instead of filing issues. 
==> Installing dependencies for ruby: readline, libyaml, makedepend 
==> Installing ruby dependency: readline 
==> Downloading https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz 
==> Downloading from http://mirror.team-cymru.org/gnu/readline/readline-6.3.tar.gz 
######################################################################## 100.0% 
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/ 

curl: (22) The requested URL returned error: 404 Not Found 
Error: Failed to download resource "readline--patch" 
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff 
+0

請將純文本錯誤作爲純文本發佈在您的問題的正文中。對於人們來說,圖像通常很難處理:它們中的文本不能被複制粘貼到答案中或用於測試。 – tadman

+1

與python3安裝相同的問題 – iCrus

回答

6

,當我在我的Mac安裝了Ruby,我遇見了同樣的問題。也許你可以嘗試以下步驟來解決這個問題,它適用於我:)

  1. 在終端提示符下更新您的brew,粘貼/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"。 (或以下的brew主頁指令),也只是brew update
  2. 運行brew install ruby

祝你好運! :)

+0

謝謝!這對我有效!我執行了第一步,然後執行'rvm install 2.3.3'。 –

+0

只需要運行'brew update'然後再次運行該命令:) –