LoginSignup
6
1

More than 5 years have passed since last update.

plenvでperl 5.28.0をinstallしようとしたらエラーがでた

Posted at

概要

Mac book Pro (macOS Sierra)
を使ってて、plenvでperl 5.28.0をinstallしようとしたらエラーがでた時のメモ

perl 5.28.0をinstallしてみる

$ plenv install 5.28.0
Installing 5.28.0 as 5.28.0
WARN: [cpan_perl_releases] not found the tarball for perl-5.28.0
WARN: [perl_releases_page] This page is 3 or more days old. ignore
WARN: [search_cpan_org] Cannot get content from http://search.cpan.org/dist/perl-5.28.0: 599 Internal Exception
ERROR: Cannot find the tarball for perl-5.28.0
ABORT

エラーが出てinstallできませんでした。
少し探してみると、perl-buildのupdateが必要だと言うことがわかりました。

参考: https://www.slideshare.net/tokuhirom/plenv-and-perl-build-and-searchcpanorg

ということでperl-buildをupdateする

と思ったらそもそもperl-buildが入っていなかった

$ ls -a .plenv
.       build       shims       versions
..      cache       version

たしかbrewで入れてたと思うので消した。

$ brew uninstall perl-build 
Uninstalling /usr/local/Cellar/perl-build/1.13... (331 files, 9.6MB)

そして、perl-buildをinstallした

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

今度こそ perl 5.28.0をinstallしてみる

一応、itermを再起動してinstallしてみる

$ plenv install 5.28.0

これでinstallできました。

$ plenv versions
  system
* 5.18.0
  5.28.0
6
1
0

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
6
1