A solution in Ubuntu that prompts for the make command cannot be found (command not found)

Source: Internet
Author: User

This microblog is reproduced from http://blog.csdn.net/fenglibing/article/details/7096556, thanks to bloggers.

The first way: repair with the installation disk

Today encountered an Ubuntu, others just installed, I downloaded the ncftp, ready to move files from other places, the ncftp download back to extract, according to the original installation method for installation, implementation:

Make install

Tip I can't find the make command:

The program "make" is currently not installed. Can install it by typing:
Apt-get Install make

I tried to install Apt-get install make, but prompted:

Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done
Package make isn't available, but is referred to by another Package.
This could mean that the package is missing, has been obsoleted, or
is only available from another source
E:package ' Make ' has no installation candidate

Try to pass the keyword:

The program ' make ' is currently not installed

And

Package make isn't available, but is referred to by another Package

For Google, basically no one has encountered me such a situation, can not find the corresponding answer, and finally help the master, through the following ways to do:

1, first into the Ubuntu installation disk to the CD;

2, again in order to execute the following command:

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

We can get it done.

The second way: After the source is updated Apt-get install make

Command: sudo apt-get install make

Problems may be encountered: E:dynamic MMap ran out of room. Please increase the size of apt::cache-limit. Current value:25165824. (Man 5 apt.conf)

Solution: From http://forum.lupaworld.com/forum.php?mod=viewthread&tid=59980&ordertype=2

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

The error content is: E:dynamic MMap ran out of room. Please increase the size of apt::cache-limit. Current value:25165824. (Man 5 apt.conf)
Some of the methods found on the network either cannot be used or the source is changed. Later in a foreign website found a solution. The method is successful under Ubuntu.
Terminal Input Command sudo gedit/etc/apt/apt.conf.d/70debconf
Gedit is a text editing software, but also can use Emacs and other software. Under ubuntu10.04, 70debconf is a cache profile, and in some other Linux systems there may be a configuration file under the./apt directory.
Add a row of Apt::cache-limit 33554432 to the open file (this semicolon must be appended)
33554432 is the cache size, as large as possible. Save on over.

Then in the execution sudo apt-get install make



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.