Linux 安装Perl模块MIME::Lite时出错

Linux 安装Perl模块MIME::Lite时出错,linux,perl,Linux,Perl,我正在运行Debian9x64,我想用perl运行一个小脚本,它需要MIME::Lite模块。要安装它,请运行以下命令: perl-MCPAN-e'install MIME::Lite' 这就是结果: root@XutiHTPC:/home/xuti# perl -MCPAN -e 'install MIME::Lite' Reading '/root/.cpan/Metadata' Database was generated on Fri, 15 Jun 2018 10:41:0

我正在运行Debian9x64,我想用perl运行一个小脚本,它需要MIME::Lite模块。要安装它,请运行以下命令:

perl-MCPAN-e'install MIME::Lite'

这就是结果:

    root@XutiHTPC:/home/xuti# perl -MCPAN -e 'install MIME::Lite'
Reading '/root/.cpan/Metadata'
  Database was generated on Fri, 15 Jun 2018 10:41:02 GMT
Running install for module 'MIME::Lite'
Checksum for /root/.cpan/sources/authors/id/R/RJ/RJBS/MIME-Lite-3.030.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring R/RJ/RJBS/MIME-Lite-3.030.tar.gz with Makefile.PL
MIME::Lite is designed to take advantage of a variety of external modules
if they are not present then MIME::Lite will attempt to do its best
but its strongly recommend that you install them.

These modules are:
        MIME::Types
        Mail::Address
I can add these modules to the prereq list which will cause the files to be
automatically installed if they aren't already present
Add prereqs? [Yes]
Checking if your kit is complete...
Looks good
Warning: prerequisite Email::Date::Format 1.000 not found.
Warning: prerequisite MIME::Types 1.28 not found.
Warning: prerequisite Mail::Address 1.62 not found.
Generating a Unix-style Makefile
Writing Makefile for MIME::Lite
Writing MYMETA.yml and MYMETA.json
  RJBS/MIME-Lite-3.030.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for R/RJ/RJBS/MIME-Lite-3.030.tar.gz
---- Unsatisfied dependencies detected during ----
----        RJBS/MIME-Lite-3.030.tar.gz       ----
    Mail::Address [requires]
    Email::Date::Format [requires]
    MIME::Types [requires]
Running install for module 'Mail::Address'
Checksum for /root/.cpan/sources/authors/id/M/MA/MARKOV/MailTools-2.20.tar.gz ok
Configuring M/MA/MARKOV/MailTools-2.20.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Date::Format 0 not found.
Warning: prerequisite Date::Parse 0 not found.
Generating a Unix-style Makefile
Writing Makefile for MailTools
Writing MYMETA.yml and MYMETA.json
  MARKOV/MailTools-2.20.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MA/MARKOV/MailTools-2.20.tar.gz
---- Unsatisfied dependencies detected during ----
----       MARKOV/MailTools-2.20.tar.gz       ----
    Date::Format [requires]
    Date::Parse [requires]
Running install for module 'Date::Format'
Checksum for /root/.cpan/sources/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz ok
Configuring G/GB/GBARR/TimeDate-2.30.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Date::Parse
Writing MYMETA.yml and MYMETA.json
  GBARR/TimeDate-2.30.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for G/GB/GBARR/TimeDate-2.30.tar.gz
  GBARR/TimeDate-2.30.tar.gz
  make -- NOT OK
Running install for module 'Date::Parse'
  GBARR/TimeDate-2.30.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/TimeDate-2.30-WvSQXd
  GBARR/TimeDate-2.30.tar.gz
  Has already been prepared
  GBARR/TimeDate-2.30.tar.gz
  Could not make: Unknown error

  MARKOV/MailTools-2.20.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/MailTools-2.20-noZ3M9
  MARKOV/MailTools-2.20.tar.gz
  Has already been prepared
Running make for M/MA/MARKOV/MailTools-2.20.tar.gz
Warning: Prerequisite 'Date::Format => 0' for 'MARKOV/MailTools-2.20.tar.gz' failed when processing 'GBARR/TimeDate-2.30.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Date::Parse => 0' for 'MARKOV/MailTools-2.20.tar.gz' failed when processing 'GBARR/TimeDate-2.30.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
  MARKOV/MailTools-2.20.tar.gz
  make -- NOT OK
Running install for module 'Email::Date::Format'
Checksum for /root/.cpan/sources/authors/id/R/RJ/RJBS/Email-Date-Format-1.005.tar.gz ok
Configuring R/RJ/RJBS/Email-Date-Format-1.005.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Email::Date::Format
Writing MYMETA.yml and MYMETA.json
  RJBS/Email-Date-Format-1.005.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for R/RJ/RJBS/Email-Date-Format-1.005.tar.gz
  RJBS/Email-Date-Format-1.005.tar.gz
  make -- NOT OK
Running install for module 'MIME::Types'
Checksum for /root/.cpan/sources/authors/id/M/MA/MARKOV/MIME-Types-2.17.tar.gz ok
Configuring M/MA/MARKOV/MIME-Types-2.17.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for MIME::Types
Writing MYMETA.yml and MYMETA.json
  MARKOV/MIME-Types-2.17.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MA/MARKOV/MIME-Types-2.17.tar.gz
  MARKOV/MIME-Types-2.17.tar.gz
  make -- NOT OK
  RJBS/MIME-Lite-3.030.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/MIME-Lite-3.030-bAZrWv
  RJBS/MIME-Lite-3.030.tar.gz
  Has already been prepared
Running make for R/RJ/RJBS/MIME-Lite-3.030.tar.gz
Warning: Prerequisite 'MIME::Types => 1.28' for 'RJBS/MIME-Lite-3.030.tar.gz' failed when processing 'MARKOV/MIME-Types-2.17.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Mail::Address => 1.62' for 'RJBS/MIME-Lite-3.030.tar.gz' failed when processing 'MARKOV/MailTools-2.20.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Email::Date::Format => 1.000' for 'RJBS/MIME-Lite-3.030.tar.gz' failed when processing 'RJBS/Email-Date-Format-1.005.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
  RJBS/MIME-Lite-3.030.tar.gz
  make -- NOT OK
我已尝试安装MIME::Types和Mail::Address的先决条件,但没有成功,MARKOV/MailTools失败

有什么建议吗


非常感谢

看起来您正在使用系统Perl。那么,为什么不使用模块的预打包版本呢

$ sudo apt-get install libmime-lite-perl

看起来您正在使用Perl系统。那么,为什么不使用模块的预打包版本呢

$ sudo apt-get install libmime-lite-perl

我发现了问题所在。在安装任何新的PERL模块之前,Linux必须安装MAKE。我的debian 9安装是新的,没有安装make命令。我跑

apt-get install make
还有perl模块

perl -MCPAN -e 'install Net::SMTPS'
而且有效


谢谢你抽出时间

我发现了问题。在安装任何新的PERL模块之前,Linux必须安装MAKE。我的debian 9安装是新的,没有安装make命令。我跑

apt-get install make
还有perl模块

perl -MCPAN -e 'install Net::SMTPS'
而且有效


感谢您抽出时间

哎呀。愚蠢的打字错误。谢谢@daxim.Hi,谢谢它安装了MIME:Lite。现在脚本要求我提供Net::SMTPS。我尝试使用apt-get-install-libnet-smtp-ssl-perl安装它,但它已经安装好了。perl-MCPAN-e'install Net::SMTPS'在运行Make时也失败了。Thanks@Xuti:
sudo-apt-get-install-libnet-smtps-perl
。CPAN分发名称和.deb filenames.Oops之间有一个非常简单的映射。愚蠢的打字错误。谢谢@daxim.Hi,谢谢它安装了MIME:Lite。现在脚本要求我提供Net::SMTPS。我尝试使用apt-get-install-libnet-smtp-ssl-perl安装它,但它已经安装好了。perl-MCPAN-e'install Net::SMTPS'在运行Make时也失败了。Thanks@Xuti:
sudo-apt-get-install-libnet-smtps-perl
。CPAN分发名和.deb文件名之间有一个非常简单的映射。