Can’t exec make No such file or directory [Fix]

Updated on January 25, 2018

Error: This tutorial will explain how to fix “Can’t exec make: No such file or directory at /usr/share/perl/5.14/CPAN/Distribution.pm” error while executing a Perl program.

Can't exec "/usr/bin/make": No such file or directory at
> /usr/share/perl/5.14/CPAN/Distribution.p

Solution:

If you get this error while compiling an application or executing a Perl program, then here’s how you can solve it.

Looking at the error message "Can't exec /usr/bin/make", it’s clear that the OS is missing 'make'. Run the below command to see if make is installed in the system.

# whereis make

If there are no results displayed, then install make as shown below:

On Ubuntu variants:

# apt-get install build-essential

The build-essential package will install other tools that are required along with make.

On CentOS/Fedora/RedHat variants:

# yum groupinstall "Development Tools"

The "Development Tools" package will install tools that are required along with make.

Check if make is installed by typing 'make' command or using whereis command.

$ whereis make
make: /usr/bin/make /usr/share/man/man1/make.1.gz

That’s it!

Was this article helpful?

Related Articles

Leave a Comment