1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cpanが重くて plenv install がコケたので先にダウンロードして入れた

Posted at
plenv install 5.14.2

普通にインストールしようとしたら以下のメッセージをだしてABORTされた。

Fetching 5.14.2 as /home/vagrant/.plenv/cache/perl-5.14.2.tar.bz2 (http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/perl-5.14.2.tar.bz2)
Cannot get file from http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/perl-5.14.2.tar.bz2: 599 Internal Exception at /home/vagrant/.plenv/plugins/perl-build/bin/../lib//Perl/Build.pm line 108.

Perl::Build.pmの108行目はHttp::Tinyのタイムアウトなので、どうもcpanがらPerlをダウンロードできてない模様。

103    my $http = HTTP::Tiny->new();
104    my $response = $http->mirror($url, $path);
105    if ($response->{success}) {
106        print "Downloaded $url to $path.\n";
107    } else {
108        die "Cannot get file from $url: $response->{status} $response->{reason}";
109    }

wgetなどで生アクセスしてみると、かなり重いもののなんとかperl-5.14.2.tar.bz2がダウンロードできたので、これを~/.plenv/cache/にコピーしてあげて再度インストールしたらなんとかうまくいった。
もっとスマートな方法がありそうだけどとりあえず。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?