2016-08-30 5 views
0
perl -e "use Data::Printer" 

エラー:端末からData :: Printer perl moduleのインストール方法は?

Can't locate Data/Printer.pm in @INC (you may need to install the Data::Printer module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at -e line 1. 
BEGIN failed--compilation aborted at -e line 1. 

答えて

-1

cpan Data::Printer 

これは、モジュールとの依存関係

+0

この解決策は私のために働いた。 – saber

0

使用CPANコマンドがインストールされますcpan Modulename

$ cpan Data::Printer 

は、それが自動的に依存関係をインストールし、依存関係が自動的に私はApp::cpanminusを好む

$ perl -MCPAN -e shell 
cpan[1]> o conf prerequisites_policy follow 
cpan[2]> o conf commit 
exit 

の下に従ってインストールします。ちょうど

$ cpanm Data::Printer 
関連する問題