我遇到了 perl 问题,它说您可能需要安装 inc::Module::Install 模块

时间:2021-02-01 02:08:13

标签: perl

我的操作系统是 Ubuntu 20.04,我用密钥安装了 perl

apt-get install libdbd-mysql-perl -y
apt-get install libconfig-tiny-perl -y
apt-get install libparams-validate-perl -y
apt-get install libparallel-forkmanager-perl -y
apt-get install liblog-dispatch-perl -y
apt-get install libtime-hires-perl -y
apt-get install make -y
apt-get install libnet-telnet-perl -y
apt-get install libdbd-mysql-perl libconfig-tiny-perl libparams-validate-perl libparallel-forkmanager-perl liblog-dispatch-perl libtime-hires-perl make

我可以发现 perl 是通过 'perl --version' 安装的

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

我想安装 mha4mysql-manager 和节点,我可以从 https://github.com/yoshinorim/mha4mysql-node/releases/tag/v0.58 下载它。我安装了 do perl Makefile.PL,但它说

Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.

1 个答案:

答案 0 :(得分:0)

这个模块使用Module::Install,所以需要先安装:

sudo apt-get install libmodule-install-perl

大多数 Perl 模块都是为 Ubuntu 或 Debian 打包的,因此查找等效的发行版软件包并直接安装通常会更快(并节省安装时间)。