我正在嘗試安裝cpan模塊。但出現以下錯誤Cpan模塊安裝錯誤
請爲這個
cpan[3]> install xml::xpath
Going to read '/Users/user/.cpan/Metadata'
Database was generated on Sun, 07 Apr 2013 09:53:02 GMT
Warning: Cannot install xml::xpath, don't know what it is.
Try the command
i /xml::xpath/
to find objects with matching identifiers.
cpan[4]> i/xml::xpath/
Catching error: "Can't locate object method \"xpath/\" via package \"i/xml\" (perhaps you forgot to load \"i/xml\"?) at /System/Library/Perl/5.12/CPAN.pm line 375, <FIN> line 4.\cJ" at /System/Library/Perl/5.12/CPAN.pm line 391
CPAN::shell() called at /System/Library/Perl/5.12/App/Cpan.pm line 295
App::Cpan::_process_options('App::Cpan') called at /System/Library/Perl/5.12/App/Cpan.pm line 364
App::Cpan::run('App::Cpan') called at /usr/bin/cpan5.12 line 12
cpan[5]>
更好的是,在命令行上:'cpan XML :: XPath' – 2013-04-08 16:39:35