There is no make command in Linux (make: *** No target specified and no makefile or make command installation method found)

There is no make command in Linux (make: *** No target specified and no makefile or make command installation method found)

Notice! ! !

This situation can actually be avoided during the installation of the virtual machine. Next time you test the virtual machine, just select the development tool.

insert image description here

Okay, let's get back to the topic. This time I'm going to help you solve the problem. First, enter make and you will see the following display:

insert image description here

In this case, if there is an Internet connection, you can directly enter yum -y install make to solve the problem. If there is no Internet connection, you need to download the source package online and upload it.

yum -y install make

Download from the following URL in an offline environment and upload to the Linux system via xftp

http://ftp.gnu.org/gnu/make/make-4.2.tar.gz

Installation steps: Unzip the tarball and go to the make-4.2 directory

tar -zxvf make-4.2.tar.gz 

insert image description here

Execute ./configure

./configure 

insert image description here

Type make, make install

makemake install

At this time, the make command has been installed. Enter make to compile the source code package. Note! ! ! ! If this method still doesn't work, it's because the system doesn't have gcc. You also need to install the gcc source package. Since the gcc source package has too many dependencies, I won't demonstrate it here. I'll leave a dependency chart. You can search the Internet for installation methods. If you have a network environment, enter yum -y install gcc.

insert image description here

Summarize

This is the end of this article about the problem of no make command in Linux (make: *** no target specified and no makefile found and how to install the make command). For more related content about no make command in Linux, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to view and execute historical commands in Linux
  • Teach you to hide Linux command line history
  • Shell history command recording function in Linux
  • How to Communicate with Other Users on the Linux Command Line
  • Use of Linux telnet command
  • Linux gzip command compression file implementation principle and code examples
  • Detailed explanation of how to adjust Linux command history

<<:  The actual process of encapsulating axios in the project

>>:  How to export mysql table structure to excel

Recommend

js realizes 3D sound effects through audioContext

This article shares the specific code of js to ac...

Solution to the conflict between Linux kernel and SVN versions

Phenomenon The system could compile the Linux sys...

MySql Group By implements grouping of multiple fields

In daily development tasks, we often use MYSQL...

Teach you how to build the vue3.0 project architecture step by step

Table of contents Preface: 1. Create a project wi...

How to migrate the data directory in mysql8.0.20

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

How does MySQL ensure data integrity?

The importance of data consistency and integrity ...

js realizes the function of clicking to switch cards

This article example shares the specific code of ...

Ubuntu 20.04 sets a static IP address (including different versions)

Because Ubuntu 20.04 manages the network through ...

A complete guide to some uncommon but useful CSS attribute operations

1. Custom text selection ::selection { background...

How to make a tar file of wsl through Docker

I've been playing with the remote development...

How does MySQL ensure master-slave consistency?

Table of contents The basic principle of MySQL ma...

How to build a Vue3 desktop application

In this article, we will look at how to develop a...

How to configure Nginx load balancing

Table of contents Nginx load balancing configurat...