Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash - make command not found

I have created make file named Makefile in my linux ec2 server.

all: a b

a: daemon.cpp dictionary_exclude.cpp
        g++ -o a daemon.cpp dictionary_exclude.cpp -lpthread -std=c++0x -L.

b: user_main.cpp client.cpp
        g++ -o b user_main.cpp client.cpp

I could run each of this independently successfull.

But when I execute

make
make -f Makefile

It says make : -bash: make: command not found

Any idea? I can see manually for make is available through man make

like image 769
user3245689 Avatar asked Feb 11 '14 11:02

user3245689


1 Answers

Please execute following command to install make in your system

sudo yum install build-essential
like image 116
Rahul R Dhobi Avatar answered Sep 20 '22 15:09

Rahul R Dhobi