Run this command to install make and all the packages needed to build your code.

sudo apt-get install build-essential
Answer from JorelC on askubuntu.com
🌐
iO Flood
ioflood.com › blog › install-make-command-linux
Intro to 'make' Linux Command: Installation and Usage
April 26, 2024 - To resolve this, you need to install ‘make’ using the appropriate package manager for your distribution (as we discussed earlier). Alternatively, if ‘make’ is installed but not found, you might need to add it to your PATH. make # Output: # bash: make: command not found ·
🌐
GNU
gnu.org › software › bash › manual › html_node › Basic-Installation.html
Basic Installation (Bash Reference Manual)
Optionally, type ‘make tests’ to run the Bash test suite. Type ‘make install’ to install bash and bashbug.
Discussions

scripting - How to execute "make; make install" inside a bash script? - Stack Overflow
I need to automate the installation of the NRPE agent inside a bash script. How do I "make; make install" in a remote directory? Here's the code so far: #!/bin/bash for f in *.tar.gz do tar z... More on stackoverflow.com
🌐 stackoverflow.com
March 28, 2019
Makefile - How to install a bash script into user's bin directory? - Unix & Linux Stack Exchange
I need to make a Makefile to install a bash script into a user's bin directory, but I'm not sure what the best way of doing this would be. Should I be using a variable that accepts user input to sp... More on unix.stackexchange.com
🌐 unix.stackexchange.com
May 9, 2019
go - MINGW64 "make build" error: "bash: make: command not found" - Stack Overflow
I can use make commands now with git's mingw64 installation on windows. 2025-01-21T12:03:12.067Z+00:00 ... Save this answer. ... Show activity on this post. You can also use Chocolatey. ... When it finishes, it is installed and available in Git for Bash / MinGW. More on stackoverflow.com
🌐 stackoverflow.com
software installation - How do you install Make from source? - Unix & Linux Stack Exchange
I have tried Make version 4.2 and 4.3 on Ubuntu 18.x, RHEL 8.x, and SUSE 15.x servers. But I get the same problem. I cannot use binary packages (e.g, yum, apt, or zypper commands). I try to run More on unix.stackexchange.com
🌐 unix.stackexchange.com
April 16, 2020
🌐
TISC
tiswww.case.edu › php › chet › bash › INSTALL
Basic Installation ==================
If you would like to change the installation locations for a single run, you can specify these variables as arguments to ‘make’: ‘make install exec_prefix=/’ will install ‘bash’ and ‘bashbug’ into ‘/bin’ instead of the default ‘/usr/local/bin’. If you want to see the ...
Top answer
1 of 5
78

Make is a general purpose workflow program, usually used for compilation. But it can be used for anything.

When you do something like "make all", the make program executes a rule named "all" from a file in current directory named "Makefile". This rule usually calls the compiler to compile some source code into binaries.

When you do "make install", the make program takes the binaries from the previous step and copies them into some appropriate locations so that they can be accessed. Unlike on Windows, installation just requires copying some libraries and executables and there is no registry requirement as such. In short, "make install" just copies compiled files into appropriate locations.

2 of 5
54

make install does whatever the Makefile author wants it to do. Typically, by this point, it is too late to change the install directory, as it is often known earlier, during the build, so help files and configuration files can be referenced with the correct pathnames.

Many projects use the GNU Autotools to try to improve their portability among hardware and operating system differences. (Different Unix variants use slightly different headers for declarations of functions that are slightly off the usual path -- except most programs need one or another of the ones declared in different locations.)

When a project does use the Autotools, the normal mantra to install it is:

./configure
make
make install

The ./configure typically allows you to use a command line option like --prefix /opt/apache or something similar to specify a different pathname. /usr/local/ is a common default prefix. It is far easier for locally built software to live in one place and distribution-provided software to live in the "main directories": /usr/ /bin/, and so on. (Packagers are very careful to never touch files in /usr/local/ -- they know it is exclusively for system administrators.)

Anyway, the ./configure --prefix /path/to/new/prefix will set a variable in the Makefile that is available when compiling the program, modifying the manual pages so they point to the correct locations for files, modifying configuration files, etc. So make will build the software specifically for the install location you want and make install will install it into that location.

Most programs can run even without the final make install step -- just ./program_name will often start them up. This is definitely a per-project thing -- some, like postfix, qmail, etc., are made up of many different moving pieces and rely on them all working together. Others, like ls or su might be self-contained enough to execute fine from the directory they were built in. (This is not often useful -- but sometimes very useful.)

However, not all projects use the Autotools -- they are huge, complicated, and miserable to maintain. Hand-written Makefiles are much simpler to write, and I personally think just distributing a simple Makefile with configuration variables available is a lot easier on developers and users both. (Though the ./configure ; make ; make install mantra is really easy on users when it works.)

🌐
Programming with Jim
programmingwithjim.wordpress.com › 2020 › 11 › 29 › make-in-git-bash
Make in Git Bash | Programming with Jim
November 29, 2020 - Power Shell, one of the programs included in mingw-w64 is GNU make, which is oddly installed under the name mingw-make.exe, meaning to make, you must type "mingw-make". While attempting to build libsxe using the mak ...
Find elsewhere
🌐
GitHub
gist.github.com › evanwill › 0207876c3243bbb6863e65ec5dc3f058
how to add more utilities to git bash for windows, wget, make · GitHub
Keep in mind you can easy add make, ... are installed and on your PATH, or you will encounter endless error messages. Go to ezwinports. Download make-4.1-2-without-guile-w32-bin.zip (get the version without guile). Extract zip. Copy the contents to your Git\mingw64\ merging the folders, but do NOT overwrite/replace any existing files. As of 2018, recent versions of Git Bash include Nano, ...
🌐
Microdata
handbook.microdata.io › tools › make › make-in-windows
Make in Windows | Handbook
March 16, 2023 - There are several ways to install Make on Windows. In this tutorial we will use Git Bash because it is also needed for Git on Windows, so you might already have that if you followed the steps in Onboarding. The steps follow the instructions detailed here.
🌐
DEV Community
dev.to › skypy › linux-make-install-command-2dd6
Linux make install command - DEV Community
September 1, 2021 - $ ls testapp installer.sh makefile testapp testapp.c testapp.conf ... #!/bin/bash ROOTDIR=${1:-/opt/testapp} OWNER=${2:-testapp} GROUP=${3:-testapp} # Create bin and opt directories install -v -m 755 -o $OWNER -g $GROUP -d $ROOTDIR/bin $ROOTDIR/etc if [ "$?" -ne "0" ]; then echo "Install: Failed to create directories." exit 1 fi # install binary install -b -v -m 750 -o $OWNER -g $GROUP -s testapp $ROOTDIR/bin if [ "$?" -ne "0" ]; then echo "Install: Failed to install the binary" exit 2 fi # install configuration file install -b -v -m 600 -o $OWNER -g $GROUP testapp.conf $ROOTDIR/etc if [ "$?" -ne "0" ]; then echo "Install: Failed to install the config file" exit 3 fi echo "installation completed.."
🌐
How-To Geek
howtogeek.com › home › linux › how to fix "make: command not found" error in ubuntu
How to Fix "make: command not found" Error in Ubuntu
May 5, 2023 - If you see a message from make complaining that you didn't give it a specific command and it couldn't find a makefile, then make is installed and working. You can use the whereis command to see where the make binary and man pages are located. ... If you see a message from Bash saying it can't ...
🌐
Tilburg Science Hub
tilburgsciencehub.com › building-blocks › configure-your-computer › automation-and-workflows › make
Set up Make - Tilburg Science Hub
Open a terminal by searching for it with spotlight, cmd + spacebar then type terminal and press Return when it appears. Then, copy and paste the following: bash · xcode-select --install · Make is pre-installed on Linux operating systems so there is nothing to be done.
🌐
Linux Hint
linuxhint.com › install-make-ubuntu
How to install make on Ubuntu – Linux Hint
It includes executable targets and instructions and is not permitted to generate several makefiles. It’s best if you make a separate directory for it. It maintains track of recently updated files, so only update those that are needed. As a result, this article will show you how to install the make package on Ubuntu.
🌐
Reddit
reddit.com › r/git › bash: make: command not found
r/git on Reddit: Bash: make: command not found
January 13, 2022 -

I'm trying to install vim with git per the [websites instructions](https://www.vim.org/git.php) and when I try to run "make", git returns "bash: make: command not found". I found a [thread](https://stackoverflow.com/questions/36770716/mingw64-make-build-error-bash-make-command-not-found) about it on stack overflow saying to install and use either chocolatey or ezwinports but I cant get it to work. Can someone help me out please. Its probably something simple I'm doing wrong but I cant seem to figure it out.