Solve the error "Can't locate ExtUtils/MakeMaker.pm in @INC"

Solve the error "Can't locate ExtUtils/MakeMaker.pm in @INC"

When installing mha4mysql, the steps are roughly: unzip, perl Makefile.PL, make, make install. When executing perl Makefile.PL, the following error is reported. Here is a brief solution:

# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at inc/Module/Install/Can.pm line 5.
BEGIN failed--compilation aborted at inc/Module/Install/Can.pm line 5.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at inc/Module/Install/Makefile.pm line 4.
BEGIN failed--compilation aborted at inc/Module/Install/Makefile.pm line 4.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MM_Unix.pm in @INC (@INC contains: inc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at inc/Module/Install/Metadata.pm line 322.

Install Dependencies

yum install perl-ExtUtils-MakeMaker

Continue to report errors

# perl Makefile.PL
*** Module::AutoInstall version 1.06
*** Checking for Perl dependencies...
Can't locate CPAN.pm in @INC (@INC contains: inc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at inc/Module/AutoInstall.pm line 304.

yum -y install perl-CPAN

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • Introduction to the difference between on and where conditions in MySQL left join operation
  • In-depth explanation of SQL statement execution (MySQL architecture overview -> query execution process -> SQL parsing order)
  • Detailed explanation of the index and storage structure of the MySQL InnoDB engine
  • PHP's mysqli_thread_id() function explained
  • PHP's mysqli_stmt_init() function explained
  • PHP's mysqli_stat() function explained
  • PHP's mysqli_ssl_set() function explained
  • PHP's mysqli_sqlstate() function explained
  • PHP's mysqli_set_charset() function explained
  • PHP's mysqli_select_db() function explained

<<:  Quick understanding and example application of Vuex state machine

>>:  A brief analysis of how to access Windows 10 host folders from CentOS 8 virtual machines

Recommend

Vue uses Echarts to implement a three-dimensional bar chart

This article shares the specific code of Vue usin...

Detailed explanation of MySQL Truncate usage

Table of contents MySQL Truncate usage 1. Truncat...

HTML realizes hotel screening function through form

<!doctype html> <html xmlns="http:/...

Docker pull image and tag operation pull | tag

I re-read the source code of the Fabric project a...

VMware installation of Centos8 system tutorial diagram (command line mode)

Table of contents 1. Software and system image 2....

Detailed explanation of several methods of JS array dimensionality reduction

Dimensionality reduction of two-dimensional array...

How to fix some content in a fixed position when scrolling HTML page

This article mainly introduces how some content i...

4 ways to avoid duplicate insertion of data in Mysql

The most common way is to set a primary key or un...

Detailed example of using useState in react

useState useState adds some internal state to a c...

Linux file management command example analysis [display, view, statistics, etc.]

This article describes the Linux file management ...

About VUE's compilation scope and slot scope slot issues

What are slots? The slot directive is v-slot, whi...

How to build your own Nexus private server in Linux

This article describes how to build a Nexus priva...

Understanding and usage scenarios of ES6 extension operators

Table of contents 1. Replace the apply method, ge...