LoginSignup
3
3

More than 5 years have passed since last update.

pryがインストールできなくて苦しんだ話

Posted at

この記事の対象

  • Windowsユーザーだ
  • RubyInstallerを使ってRubyをインストールした
  • Pryがインストールできなくてwtf状態

結論

以下のコマンドを実行しました。

gem update --system 2.4.4
gem install pry pry-doc
gem update --system

RubyGemを2.4.4に戻してインストール。その後にGemのバージョンを戻せばOKのようです。

※自分の環境だと2.4.6(最新)がはいっていました

概要

pryをインストールしようとしてgem install pryコマンドを叩くと以下の様なエラーメッセージがでました

>gem install pry pry-doc
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)

詳しくはよくわかりませんでいたがRubyGemのplatformの問題らしいです。
(RubyGemのバージョンを戻すのは暫定対応っぽい)

その他

  • pryのgemファイルをローカルにダウンロードしてgem install --localしてみたり、platform直指定も試してみましたがだめでした。

  • これでwtfできるよやったね

3
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3