Cart 0
No products in the cart.

How to use the make command in Linux ?

The make command is a powerful tool used to build and manage programs from source code on a Linux system. It is a fundamental building block of the Linux operating system, and is used to compile, link, and build programs from source code. This tutorial has provided an overview of the make command and explained how to use it through practical examples.


How to fix the "make command not found" error in Linux ?

If you're trying to use the make command in Linux, but you're receiving the error "make command not found," you're not alone! This is a common problem that can be easily fixed. Here's a tutorial on how to fix it. 


1. Check if make is installed

The first step is to check if make is actually installed on your system. You can do this with the command:

$ sudo apt-get install make 

This command will check to see if make is installed on your system and install it if it's not already. 


2. Check if make is installed correctly

If make is already installed, it may not be installed correctly. You can check this with the command:

$ which make 

This command will list the path of the make command, if it is installed correctly. 


3. Reinstall make

If the command is not found or is not installed correctly, you can reinstall make using the command:

$ sudo apt-get --reinstall install make 

This will reinstall make, ensuring that it is installed correctly. 


4. Check if make is in the PATH

Lastly, you should check if make is in the PATH. This is a variable that contains a list of directories where programs are located. To check if make is in the PATH, run the command:

$ echo $PATH

If make is not in the list, you can add it with the command:

$ export PATH=$PATH:/usr/bin/make

This will add the path for make to the PATH variable. 


That's it! You should now be able to use the make command without any errors.



Sign up to Newsletter

...and receive a free support ticket.