安装时遇到问题 Ruby(无法下载资源 "readline--patch")
Trouble installing Ruby (Failed to download resource "readline--patch")
我在尝试安装 Ruby 时遇到此错误。我试过查看 this and 但无济于事
➜ ~ 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
我在 Mac 上安装 Ruby 时遇到了同样的问题。也许您可以尝试以下步骤来解决这个问题,它对我有用:)
- 更新您的 brew,在终端提示符处粘贴
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
。 (或按照 brew 主页上的说明进行操作)或者只是 brew update
- 运行
brew install ruby
祝你好运! :)
我在尝试安装 Ruby 时遇到此错误。我试过查看 this and
➜ ~ 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
我在 Mac 上安装 Ruby 时遇到了同样的问题。也许您可以尝试以下步骤来解决这个问题,它对我有用:)
- 更新您的 brew,在终端提示符处粘贴
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
。 (或按照 brew 主页上的说明进行操作)或者只是brew update
- 运行
brew install ruby
祝你好运! :)