[英]bash - make command not found
I have created make file named Makefile
in my linux ec2 server.我在我的 linux ec2 服务器中创建了一个名为
Makefile
make 文件。
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
它说 make :
-bash: make: command not found
Any idea?任何的想法? I can see manually for make is available through man make
我可以手动看到 make 可以通过 man make 获得
请执行以下命令在您的系统中安装 make
sudo yum install build-essential
在 CentOS 或 Red Hat 中,试试这个:
yum groupinstall "Development Tools"
可能是您没有安装 binutils http://en.wikipedia.org/wiki/GNU_Binutils或者您没有将 PATH 变量设置为 bin utils 的正确位置。
Ubuntu 16 上的sudo apt-get install build-essential
对我有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.