Menu Close

ubuntu中提示找不到make命令的解决方案

这篇微博转载自http://blog.csdn.net/fenglibing/article/details/7096556,感谢博主。

 

第一种方式:利用安装盘修复

今天遇到一ubuntu,别人刚装的,我下载了ncftp,准备从其它地方把文件搬过来,把 ncftp下载回来解压缩,照原来的安装方式进行安装,执行:

make install

提示我找不到make命令:

The program ‘make’ is currently not installed.  You can install it by typing:
apt-get install make

我尝试apt-get install make进行安装,可是提示:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘make’ has no installation candidate

尝试通过关键词:

The program ‘make’ is currently not installed

Package make is not available, but is referred to by another package

进行GOOGLE,基本上没有人碰到我这样的情况,找不到相应的答案,最终求助高手,通过以下的方式进行搞定:

1、先放入UBUNTU安装盘到光盘中;

2、再按顺序执行以下的命令:

sudo apt-cdrom add
sudo apt-get update
sudo apt-get install build-essential

就可以搞定了。

第二种方式:更新源后apt-get安装make

命令:sudo apt-get install make

可能会遇到问题:E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)

解决方法:来自http://forum.lupaworld.com/forum.php?mod=viewthread&tid=59980&ordertype=2

http://www.cnblogs.com/oyjj/archive/2011/01/08/2132917.html

错误内容为:E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
在网络上找到的一些方法,要么不能用了,要么就换源。后来在国外一个网站找到了解决方法。该方法是在ubuntu下成功的。
终端下 输入命令 sudo gedit /etc/apt/apt.conf.d/70debconf
gedit 是文本编辑软件,也可以用emacs等软件。在ubuntu10.04下,70debconf 是缓存配置文件,在其他的一些linux系统中可能在./apt目录下就有配置文件了。
在打开的文件中添加一行 APT::Cache-Limit 33554432;(后面的这个分号一定要加上)
33554432是缓存大小,尽量大吧。保存就over了。

然后在执行sudo  apt-get install make

除教程外,本网站大部分文章来自互联网,如果有内容冒犯到你,请联系我们删除!

发表回复

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

Leave the field below empty!

Posted in Linux 教程

Related Posts