make: command not found 解决办法

今天在一台精简安装的 Debian 服务器编译 cpufetch,编译的时候提示“make: command not found”,下面是解决办法:

apt-get -y install gcc automake autoconf libtool make

如果使用的是 CentOS,请使用以下命令:

yum -y install gcc automake autoconf libtool make

出现“make: command not found”的原因是由于精简安装(Debian 的网络安装包,还不到50MB,真精简),没有安装 make、automake、gcc等编译工具导致的。

以后如果出现 command not found,基本上都是未安装工具导致的,根据不同的 Linux 发行版,可以使用 yum 或者 apt-get 进行安装。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>