+ -
当前位置:首页 → 问答吧 → debian下安装Mail::Sender报错!

debian下安装Mail::Sender报错!

时间:2010-09-16

来源:互联网

RT!

debian 5.0.5

以前安装过
aptitude install -y libemail-sender-perl

但是
perl -e 'use Mail::Sender'报错!!

Can't locate Mail/Sender.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.



运行perl -MCPAN -e 'install Mail::Sender'
试图再次安装。

结果还是错误
*********************************************************************
The defaults were saved into blib/lib/Mail/Sender.config
Please review the code in there if 'make test' or
every 'use Mail::Sender;' command fails.  JENDA/Mail-Sender-0.8.16.tar.gz
  make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ........... 1/1 # Testing Mail::Sender 0.8.16, Perl 5.010001, /usr/bin/perl
t/00-load.t ........... ok
t/01-create-object.t .. 1/5
#   Failed test 'created the object with default settings'
#   at t/01-create-object.t line 12.
#   Error: The SMTP server  was not found
# Looks like you planned 5 tests but ran 2.
# Looks like you failed 1 test of 2 run.
t/01-create-object.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 4/5 subtests

Test Summary Report
-------------------
t/01-create-object.t (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 5 tests but ran 2.
Files=2, Tests=3,  1 wallclock secs ( 0.01 usr  0.07 sys +  0.09 cusr  0.16 csys =  0.33 CPU)
Result: FAIL
Failed 1/2 test programs. 1/3 subtests failed.
make: *** [test_dynamic] 错误 1
  JENDA/Mail-Sender-0.8.16.tar.gz
  make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports JENDA/Mail-Sender-0.8.16.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
  make test had returned bad status, won't install without force

作者: laohuanggua   发布时间: 2010-09-16

自己动手。丰衣足食。


aptitude install libyaml-perl


而后

perl -MCPAN -e 'install Mail::Sender'
就木有问题了!!!

################# Default new object settings for Mail::Sender #################


Specify defaults for Mail::Sender? (y/N)
  JENDA/Mail-Sender-0.8.16.tar.gz
  make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ........... 1/1 # Testing Mail::Sender 0.8.16, Perl 5.010001, /usr/bin/perl
t/00-load.t ........... ok
t/01-create-object.t .. ok
All tests successful.
Files=2, Tests=6,  0 wallclock secs ( 0.01 usr  0.04 sys +  0.10 cusr  0.12 csys =  0.27 CPU)
Result: PASS
  JENDA/Mail-Sender-0.8.16.tar.gz
  make test -- OK
Running make install
Prepending /root/.cpan/build/Mail-Sender-0.8.16-TGLf0L/blib/arch /root/.cpan/build/Mail-Sender-0.8.16-TGLf0L/blib/lib to PERL5LIB for 'install'
Manifying blib/man3/Mail::Sender.3pm
Installing /usr/local/share/perl/5.10.1/Mail/Sender.pm
Installing /usr/local/share/perl/5.10.1/Mail/Sender/CType/Win32.pm
Installing /usr/local/share/perl/5.10.1/Mail/Sender/CType/Ext.pm
Installing /usr/local/man/man3/Mail::Sender.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
  JENDA/Mail-Sender-0.8.16.tar.gz
  make install  -- OK
debianlwp:~#
debianlwp:~# perl -e 'use Mail::Sender'

作者: laohuanggua   发布时间: 2010-09-16