On Linux, make is often preinstalled or included with package sets like build-essential. On Mac, it’s included with the Xcode command line tools, whereas on Windows, you must manually install it. Of course, there are ways to manually install make on Linux and Mac as well. We’ve discussed these and other fixes in further detail in the sections below.

How to Fix Make Command Not Found

As stated, you should ensure make is actually installed and present in the PATH variable. Additionally, as this issue is common with codespace, we’ve also listed a relevant fix for that.

On Linux

Depending on the Linux system, the make command may or may not be installed. If it’s installed, you should check the PATH variable. But often, it’s just not installed to start with. Do note that before you install make, you may have to update the package list first. Here’s how you can do this on various distros:

On Debian-based distros:sudo apt-get updateOn Arch-based distros:sudo pacman -Syu

Next, you can install make with the following commands:

On Debian-based distros:sudo apt-get install -y makeOn RPM distros:sudo yum install makeOn Arch-based distros:sudo pacman -S make

If installing make like this doesn’t work, you can install it as part of the build-essential or similar set of packages.

On Debian-based distros:sudo apt install -y build-essentialOn RPM Distros:sudo yum groupinstall “Development Tools"On Arch-based distros:sudo pacman -Sy base-devel

Make is generally located in the /usr/bin or /usr/local/bin directory. These directories should already be in your PATH variable, but if not, you can add them as such:export PATH=$PATH:/file/path

On Windows

Unlike Linux, make isn’t installed by default on Windows. We recommend using chocolatey to install it. Here are the steps for this: If installing make doesn’t resolve the error, you should check the PATH variable. Here’s how you can do this:

On Mac

On fresh Mac installations, you must first install the Xcode command line tools in order to use make. You can download the complete Xcode files from the developer site, or you can download Xcode from the App Store.  With older Xcode versions, command line tools like make were bundled by default. But now, you must manually them by going to Xcode > Preferences > Downloads > Components > Install Command Line Tools. For even newer versions, we recommend just running the xcode-select – install command in the terminal, as this will specifically install the command line tools instead of all the Xcode files. If make still doesn’t work, you should check the PATH variable. For older Xcode versions, you can add /Developer/usr/bin to the PATH environment variable with:$ export PATH=$PATH:/Developer/usr/bin For recent Xcode versions, you can instead use the following command:export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin

Rebuild Codespace

If you’re facing this error while trying to compile anything from GitHub, the codespace might be the problem. You may be able to resolve this error by deleting the codespace and reinstalling it. You can do this from your GitHub Codespaces page.

How To Fix  Make  Command Not Found  Error - 34How To Fix  Make  Command Not Found  Error - 81How To Fix  Make  Command Not Found  Error - 62How To Fix  Make  Command Not Found  Error - 22How To Fix  Make  Command Not Found  Error - 45How To Fix  Make  Command Not Found  Error - 52How To Fix  Make  Command Not Found  Error - 86How To Fix  Make  Command Not Found  Error - 87How To Fix  Make  Command Not Found  Error - 57