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

WBOY
Release: 2022-06-28 17:29:53
Original
10459 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template