尝试安装某些模块时遇到错误,这似乎与.gz有关,但不是很确定。任何线索
代码:
cpanm Digest::SHA1日志:
! Failed to unpack Digest-SHA1-2.13.tar.gz: no directory
! Failed to fetch distribution Digest-SHA1-2.13代码
cpanm -v Digest::SHA1日志:
cpanm (App::cpanminus) 1.6920 on perl 5.008008 built for aix-thread-multi
Work directory is /export/home/ty/.cpanm/work/1371400956.36241464
You have make /usr/bin/make
You have LWP 6.05
You have /usr/bin/tar:
You have /usr/bin/unzip
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.68)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
Searching Digest::SHA1 on cpanmetadb ...
--> Working on Digest::SHA1
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz ...
OK
Unpacking Digest-SHA1-2.13.tar.gz
Usage: tar -{c|r|t|u|x} [-BdDEFhilmopRUsvwZ ] [ -Number ] [ -f TarFile ]
[ -b Blocks ] [ -S [ Feet ] | [ Feet@Density ] | [ Blocksb ] ]
[ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C Directory ] File ...
Usage: tar {c|r|t|u|x} [bBdDEfFhilLXmNopRsSUvwZ[0-9] ] ]
[ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
[ [ Feet ] | [ Feet@Density ] | [ Blocksb ] ] [-C Directory ] File ...
! Failed to unpack Digest-SHA1-2.13.tar.gz: no directory
! Failed to fetch distribution Digest-SHA1-2.13发布于 2013-06-17 08:27:30
显然,它期待的是一个不同版本的tar。(从外观上看,它具有z选项。)你可以在没有cpanm的情况下安装它。
mkdir work
cd work
wget http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz
gunzip -c Digest-SHA1-2.13.tar.gz | tar xv
cd Digest-SHA1-2.13
perl Makefile.PL
make test
make install
cd ../..
rm -rf work但这意味着您需要自己安装依赖项。在本例中,这意味着Digest::base 1.00或更高版本(以及它可能具有的任何依赖项)。
发布于 2013-06-17 21:39:54
似乎cpanm也可以使用Archive::Tar。因此,如果您手动安装Archive::Tar,然后使用cpanm安装任何其他模块,您可能会有机会。
https://stackoverflow.com/questions/17131134
复制相似问题