Subject: | Should check if the downloaded tarball is valid |
I tried to install 5.8.1...
---------------------
$ perlbrew install perl-5.8.1
Attempting to load conf from /Users/schwern/perl5/perlbrew/Conf.pm
Fetching perl-5.8.1 as /Users/schwern/perl5/perlbrew/dists/perl-5.8.1.tar.gz
Installing perl-5.8.1 into /Users/schwern/perl5/perlbrew/perls/perl-5.8.1
This could take a while. You can run the following command on another
shell to track the status:
tail -f /Users/schwern/perl5/perlbrew/build.log
(cd /Users/schwern/perl5/perlbrew/build; tar xzf
/Users/schwern/perl5/perlbrew/dists/perl-5.8.1.tar.gz;cd
/Users/schwern/perl5/perlbrew/build/perl-5.8.1;rm -f config.sh
Policy.sh;sh Configure -de
-Dprefix=/Users/schwern/perl5/perlbrew/perls/perl-5.8.1;/usr/local/perl/5.10.1/bin/perl
-i -nle 'print unless /command-line/' makefile x2p/makefile;make;make
test && make install) >> '/Users/schwern/perl5/perlbrew/build.log' 2>&1
Installing perl-5.8.1 failed. See
/Users/schwern/perl5/perlbrew/build.log to see why.
If you want to force install the distribution, try:
perlbrew --force install perl
---------------
Some investigating revealed that
/Users/schwern/perl5/perlbrew/dists/perl-5.8.1.tar.gz was not a tarball
but an HTML file informing me that the file had been moved (sorry, I
don't have the file but I recall it was from ibiblio). It would be nice
if perlbrew could verify that the tarball is a tarball before proceeding
and give the user a nice error otherwise.
Thanks.