所以我有我的脚本我试图运行billing_automated.pl
前几行我有use Date;
。
当我尝试运行脚本时出现此错误
Can't locate Date.pm in @INC (you may need to install the Date module) (@INC contains:
/usr/local/Cellar/perl@5.18/5.18.2/lib/site_perl/5.18.2/darwin-thread-multi-2level
/usr/local/Cellar/perl@5.18/5.18.2/lib/site_perl/5.18.2
/usr/local/Cellar/perl@5.18/5.18.2/lib/5.18.2/darwin-thread-multi-2level
/usr/local/Cellar/perl@5.18/5.18.2/lib/5.18.2 .) at billing_automated.pl line 4.
BEGIN failed--compilation aborted at billing_automated.pl line 4.
所以我尝试运行cpan install Date
得到这个输出的呕吐物:
Reading '/Users/username/.cpan/Metadata'
Database was generated on Mon, 11 Sep 2017 20:17:02 GMT
Running install for module 'Date'
Running make for S/SE/SEYHAN/HTML-STable-0.01.tar.gz
Checksum for /Users/username/.cpan/sources/authors/id/S/SE/SEYHAN/HTML-STable-0.01.tar.gz ok
CPAN.pm: Building S/SE/SEYHAN/HTML-STable-0.01.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for HTML::STable
Writing MYMETA.yml and MYMETA.json
cp STable.pm blib/lib/HTML/STable.pm
AutoSplitting blib/lib/HTML/STable.pm (blib/lib/auto/HTML/STable)
Manifying blib/man3/HTML::STable.3
SEYHAN/HTML-STable-0.01.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/local/Cellar/perl@5.18/5.18.2/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
Using a hash as a reference is deprecated at blib/lib/HTML/STable.pm line 288.
Using a hash as a reference is deprecated at blib/lib/HTML/STable.pm line 289.
ok 1
SEYHAN/HTML-STable-0.01.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying blib/man3/HTML::STable.3
Appending installation info to /usr/local/Cellar/perl@5.18/5.18.2/lib/5.18.2/darwin-thread-multi-2level/perllocal.pod
SEYHAN/HTML-STable-0.01.tar.gz
sudo /usr/bin/make install -- OK
无论我运行cpan install Date
多少次,它仍然希望安装此S/SE/SEYHAN/HTML-STable-0.01.tar.gz
,因为天知道为什么。
我尝试过手动安装此特定文件,但它没有帮助
有关如何安装此模块的任何想法?