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
🌐
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 - To fix the "make: command not found" error on Ubuntu Linux, you will need to install make. To install make, run the "sudo apt install make" command or, to install the standard development tools at the same time, use the "sudo apt install ...
Discussions

software installation - Difference between "make install" and "sudo make install" - Unix & Linux Stack Exchange
Sometimes I encounter problems with using make install which gives me a permission denied error when writing to some folders. So instinctively I use sudo make install. Will this introduce additional More on unix.stackexchange.com
🌐 unix.stackexchange.com
September 18, 2011
[Solution] sudo: make: command not found
My Commands: git clone https://github.com/WiringPi/WiringPi cd WiringPi/ ./build Error: sudo: make: command not found Fix: sudo apt-get update sudo apt-get install make sudo apt-get install gcc More on github.com
🌐 github.com
2
February 10, 2022
linux - bash - make command not found - Stack Overflow
man make will give you some documentation about the make command. you can install the documentation without installing make itself, so man make is not a good test to check whether a program is installed. More on stackoverflow.com
🌐 stackoverflow.com
sudo make install command not found

Had the same last night. Don't think it means anything because i was still able to start the sync process

More on reddit.com
🌐 r/filecoin
9
1
August 15, 2020
Top answer
1 of 3
21

Avoid making local installs into system directories. The system directories eg /usr, are reserved for the package management system to use. By definition, if you are doing make install that means you are making a local install, and if you need to do sudo make install that means you don't have permission to wherever you are writing.

So, if you are getting permission errors with make install, check and see whether you are trying to install into system directories, and install into /usr/local or similar instead. /usr/local is reserved for local installations. You may need to give yourself permission to write to /usr/local, but this is usually easily done. On Debian this can be done by adding yourself to the staff group. Better still, find or create a binary package, and install that instead. That way you can easily keep track of installed packages and obtain the other benefits of package management.

Note that the package management system conversely does not install into /usr/local, per the FHS. See Section 9.1 of the Debian Policy Manual- File system hierarchy for an overview.

2 of 3
5

As has been answered above, sudo make install lets you install the files in directories which are otherwise read-only to you as a user.

The problem I can foresee is that at a later date you may want to uninstall or upgrade the program. If you still have the source code directory tree then a make uninstall will uninstall the program for you but if, as many other typical users, you had deleted the source code directory tree then you are out of luck. And since you have not installed the program using a package management system, you may also be unable to uninstall the program that way.

The best way to install such programs may be to install them in your home directory. Pass the option --prefix=/home/<user>/<some>/<directory> to ./configure. This will allow you to use make install instead of sudo make install since /home/<user>/<some>/<directory> is writable by you. Also uninstallation is a snap -- rm -rf /home/<user>/<some>/<directory>

🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › make-command-not-found-235483
make command not found?
May 7, 2008 - I'm sorta new to Debian and i'm tryint to run an installer that requieres the make command. Yet it says it's not found... what do I need to download (a
🌐
GitHub
github.com › Freenove › Freenove_Ultimate_Starter_Kit_for_Raspberry_Pi › issues › 35
[Solution] sudo: make: command not found · Issue #35 · Freenove/Freenove_Ultimate_Starter_Kit_for_Raspberry_Pi
February 10, 2022 - My Commands: git clone https://github.com/WiringPi/WiringPi cd WiringPi/ ./build Error: sudo: make: command not found Fix: sudo apt-get update sudo apt-get install make sudo apt-get install gcc
Author   Freenove
Find elsewhere
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › community › general discussion
Command not found: make - Raspberry Pi Forums
Wed Feb 06, 2019 8:58 pm I tried downloading and installing the make app but when I try running apt-get I again get "command not found: apt-get" so that is not installed. Odd. Are you sure you are running Raspbian? "apt-get" and "make" should be directly usable.
🌐
MakeUseOf
makeuseof.com › home › linux › how to fix the "make: command not found" error in ubuntu
How to Fix the "make: command not found" Error in Ubuntu
March 31, 2023 - To fix the make command not found error, you should start by updating your system with this one-liner: ... If the aforementioned command doesn't work, download and install the build-essential package, as follows:
🌐
Reddit
reddit.com › r/filecoin › sudo make install command not found
r/filecoin on Reddit: sudo make install command not found
August 15, 2020 -

I'm following this guide here https://docs.lotu.sh/en+install-lotus-ubuntu and I'm stuck on sudo make install where I get this error once I type in sudo make install

bash: go: command not found

expr: syntax error: unexpected argument ‘14’

install -C ./lotus /usr/local/bin/lotus

install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner

install -C ./lotus-seal-worker /usr/local/bin/lotus-seal-worker

I've been trying to find a solution but can't seem to solve it

🌐
Tech News Today
technewstoday.com › home › linux › how to fix “make: command not found” error
How to Fix “Make: Command Not Found” Error - Tech News Today
September 20, 2022 - The Make Command Not Found error indicates that the make utility is either not installed on the system or it’s not present in the PATH variable.
🌐
Pluralsight
pluralsight.com › blog › cloud
Troubleshooting ./configure, make and make install Tutorial | Pluralsight
Try running make install using sudo or try becoming root using su. Sudo should be used this way: [rechosen@localhost ~]$ sudo make install It will ask for a password; this usually is either your own password or the system root password.
🌐
Intel Community
community.intel.com › t5 › Intel-C-Compiler › sudo-make-install-gt-quot-icpc-quot-command-not-found-S › td-p › 889001
'sudo make install'->"icpc" command not found :S - Intel Community
April 4, 2020 - Your sudo command opens a new shell without copying your environment variables. If you need icpc in that shell, you will need to repeat the icc enviroment setup in that shell. Choose the appropriate iccvars.sh or csh. ... Hello. I've tried first adding this lines to /etc/profile: $export PATH=/opt/intel/cc/my-vers/bin $export LD_LIBRARY_PATH=/opt/opt/intel/cc/my-vers/bin then I run sudo make install from my user account, then from sudo and i had the same error.
🌐
The Tech Edvocate
thetechedvocate.org › home › how to fix the “make: command not found” error in ubuntu
How to Fix the "make: command not found" Error in Ubuntu
July 22, 2023 - If the make command is already installed on your system, the next step is to set the path to the make command. To do this, run the following command: ... This command adds the path to the make command to the system’s PATH. ... After setting the path to the make command, you can check if the “make: command not found” error is resolved.
🌐
Its Linux FOSS
itslinuxfoss.com › fix-bash-make-command-not-found
Fix: bash make command not found
The simplest way to install VS Code on Ubuntu 24.04 is to use the command “sudo snap install code –classic”. Read this post to learn about other installation methods. You can install Wine on Ubuntu 24.04 by adding the GPG key, winehq repository, and then installing the application from the apt install command. To if a string is empty or not in bash -z string comparison operator is used.
🌐
LinuxPip
linuxpip.org › fix-make-command-not-found-error
How to fix “make: command not found” error – LinuxPip
February 15, 2023 - The full error message should look like below. The program 'make' is currently not installed. You can install it by typing: sudo apt install makeCode language: JavaScript (javascript)