Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that the linux make command cannot be found

How to solve the problem that the linux make command cannot be found

WBOY
WBOYOriginal
2022-06-28 17:29:5310462browse

Solution: 1. Use the "sudo apt update" command to update the local software package cache; 2. Use the "sudo apt install make" command to install the make tool package; 3. After downloading and installing the make package, you can Use the "make --version" command to verify correct installation.

How to solve the problem that the linux make command cannot be found

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to solve the problem of Linux make command not found

When trying to use the make command, it throws an error to me:

How to solve the problem that the linux make command cannot be found

This indicates that the make command is not installed yet.

1. You can use these commands to install make step by step:

sudo apt update
sudo apt install make

The first command is to update the local package cache. This is necessary if it is a newly installed Ubuntu system. With a refreshed package cache, your system will know which repository it should download the make package from.

2. And verify whether make has been installed correctly:

make --version

How to solve the problem that the linux make command cannot be found

Extended knowledge:

A better way to install make on Ubuntu

A better way to install the make command is to use the build-essential package. This package contains make, gcc, g, and several other compilers and development tools.

sudo apt install build-essential

How to solve the problem that the linux make command cannot be found

Recommended learning: Linux video tutorial

The above is the detailed content of How to solve the problem that the linux make command cannot be found. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is i node in linuxNext article:What is i node in linux