CPAN 安装失败 Algorithm::CurveFit

CPAN fails to install Algorithm::CurveFit

我正在尝试通过在我的 Ubuntu 虚拟机的终端输入 cpan Algorithm::CurveFit 来安装 Algorithm::CurveFit

但是,这个returns出现以下错误:

Loading internal logger. Log::Log4perl recommended for better logging
Reading '/home/con/.local/share/.cpan/Metadata'
  Database was generated on Mon, 22 Nov 2021 14:17:02 GMT
Running install for module 'Algorithm::CurveFit'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.102)
Checksum for /home/con/.local/share/.cpan/sources/authors/id/S/SM/SMUELLER/Algorithm-CurveFit-1.05.tar.gz ok
CPAN: YAML loaded ok (v1.30)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20210520)
CPAN: Module::Build loaded ok (v0.4231)
Configuring S/SM/SMUELLER/Algorithm-CurveFit-1.05.tar.gz with Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Algorithm-CurveFit' version '1.05'
  SMUELLER/Algorithm-CurveFit-1.05.tar.gz
  /home/con/perl5/perlbrew/perls/perl-5.34.0/bin/perl Build.PL -- OK
Running Build for S/SM/SMUELLER/Algorithm-CurveFit-1.05.tar.gz
Building Algorithm-CurveFit
  SMUELLER/Algorithm-CurveFit-1.05.tar.gz
  ./Build -- OK
CPAN: CPAN::DistnameInfo loaded ok (v0.12)
Running Build test for SMUELLER/Algorithm-CurveFit-1.05.tar.gz
t/00pod.t ........ ok   
t/00podcover.t ... ok   
t/01basic.t ...... ok   
t/02bad_deriv.t .. 1/13 
#   Failed test at t/02bad_deriv.t line 50.
# Looks like you failed 1 test of 13.
t/02bad_deriv.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13 subtests 

Test Summary Report
-------------------
t/02bad_deriv.t (Wstat: 256 Tests: 13 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
Files=4, Tests=22,  1 wallclock secs ( 0.01 usr  0.01 sys +  0.50 cusr  0.04 csys =  0.56 CPU)
Result: FAIL
Failed 1/4 test programs. 1/22 subtests failed.
  SMUELLER/Algorithm-CurveFit-1.05.tar.gz
  ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SMUELLER/Algorithm-CurveFit-1.05.tar.gz

如何按照摘要报告底部的建议检查reports

更重要的是,如何解决这些错误并安装 Algorithm::CurveFit

如果从包中下载的源文件 CurveFit.pm 在某处符号链接到 @INC,则包 Algorithm:::CurveFit 将正常工作(显然)。

但是CurveFit.pm应该修改为CurveFit被调用,而不是Algorithm::CurveFit