• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

make: command not found

by admin

In most cases, once the makefile is created, simply issuing make and then make file without arguments will install the application. This is because the make command automatically looks for the makefile in the current directory. You can, however, issue make with various options.

If you encounter the below error while running the make command:

make: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
OS X brew install make
Debian apt-get install make
Ubuntu apt-get install make
Alpine apk add make
Arch Linux pacman -S make
Kali Linux apt-get install make
CentOS yum install make
Fedora dnf install make
Raspbian apt-get install make

make Command Examples

1. Call the first target specified in the Makefile (usually named “all”):

# make

2. Call a specific target:

# make target

3. Call a specific target, executing 4 jobs at a time in parallel:

# make -j4 target

4. Use a specific Makefile:

# make --file file

5. Execute make from another directory:

# make --directory directory

6. Force making of a target, even if source files are unchanged:

# make --always-make target

7. Override a variable defined in the Makefile:

# make target variable=new_value

8. Override variables defined in the Makefile by the environment:

# make --environment-overrides target

Filed Under: Linux

Some more articles you might also be interested in …

  1. nethogs: command not found
  2. ‘error opening class fc_host’ – systool Command Error on CentOS/RHEL 7 and 8
  3. kdialog Command Examples in Linux
  4. lastlog: command not found
  5. Unable to ssh to server after integration into Active Directory (AD) Domain [CentOS/RHEL 7]
  6. losetup: command not found
  7. How to Boot KVM Guest into a Rescue shell
  8. lsattr: command not found
  9. what does .tar file mean
  10. CentOS / RHEL : How to delete a volume group in LVM

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright