LoginSignup
2

More than 3 years have passed since last update.

posted at

[対処法] 599 Internal Exception, https://fastapi.metacpan.org/v1/release/_search

plenv install で表題のエラーが出る場合の対処法。

perl-buildを入れ直す

perl-buildは brew install していたものを使っていたので、いったんuninstallしてからcloneで入れる。

brew uninstall perl-build
git clone git://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/

perl-build本体をエディタで編集する

$HOME/.plenv/plugins/perl-build/perl-build をエディタで開いて、10258行目あたりに下記のようなパッチを適用する

- if (eval {require LWP::Protocol::https;1} )
+ if (eval {(require LWP::Protocol::https;1) && ( require Mozilla::CA; 1)} )

これで動くようになりました。

原因は?

Mozilla::CAがmacOS組み込みのPerlには入っていないのが原因のようです。
詳しくは下記Issueに書いてあります。

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
What you can do with signing up
2