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

Common operation commands of MySQL in Linux system

Serve: # chkconfig --list List all system service...

How to migrate the data directory in mysql8.0.20

The default storage directory of mysql is /var/li...

How to install kibana tokenizer inside docker container

step: 1. Create a new docker-compose.yml file in ...

A brief analysis of the difference between FIND_IN_SET() and IN in MySQL

I used the Mysql FIND_IN_SET function in a projec...

How to start tomcat using jsvc (run as a normal user)

Introduction to jsvc In production, Tomcat should...

js drag and drop table to realize content calculation

This article example shares the specific code of ...

KVM virtualization installation, deployment and management tutorial

Table of contents 1.kvm deployment 1.1 kvm instal...

Nginx reverse proxy configuration to remove prefix case tutorial

When using nginx as a reverse proxy, you can simp...

Let's talk in detail about the difference between unknown and any in TypeScript

Table of contents Preface 1. unknown vs any 2. Th...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

MySQL8.0.18 configuration of multiple masters and one slave

Table of contents 1. Realistic Background 2. Agre...

How to create an Nginx server with Docker

Operating environment: MAC Docker version: Docker...

How to use vue-cli to create a project and package it with webpack

1. Prepare the environment (download nodejs and s...

Two implementations of front-end routing from vue-router

Table of contents Mode Parameters HashHistory Has...

Analysis of Linux kernel scheduler source code initialization

Table of contents 1. Introduction 2. Basic Concep...