How can I use / install make on Amazon Linux AMI for EC2?

I am a new Amazon EC2 user.

I want to compile the pptpd package on EC2, but get the following error:

 [ root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory 

I searched the entire root directory tree, but make not available:

 [ root@ip-10-112-59-187 /]# find . -name "make" ./etc/mail/make 

I am wondering if make is really installed on AMI Amazon Linux AMI? If not, how to install it?

+4
source share
2 answers

Introduction

Amazon Linux AMI (free) based on CentOS and completely decent OS for EC2, in fact, it is specially designed by Amazon for EC2:

Amazon Linux AMI is a supported and supported Linux image provided by Amazon Web Services for use on the Amazon Elastic Compute Cloud (Amazon EC2) . It is designed to provide a stable, secure, and high-performance runtime for applications running on Amazon EC2. It also includes packages that provide easy integration with AWS, [...]. Amazon Web Services provides ongoing security and service updates for all Amazon AMI instances. [...] [emphasis mine]

However, it is really not as widely used as some other distributions, and the most popular is probably Ubuntu due to its popularity in general and its specialized long-term support for EC2 in particular (see, for example, EC2StartersGuide , Ubuntu Cloud Images or a convenient list AMI Ubuntu for Amazon EC2 on alestic ). This has two drawbacks:

  • You will find many more examples / tutorials / etc. for Ubuntu-based EC2, which makes the process easier.
  • You will find a few smaller pre-compiled packages available for CentOS that require compilation in the end (but see below).

Decision

However, CentOS (and AMI Amazon Linux AMI) uses the Yum package manager to install and update packages from CentOS (and third-party) Repositories (Debian / Ubuntu uses the APT package manager instead - their inherent concepts are very similar), see for example , section Adding Packages to Amazon Linux AMI Basics :

In addition to the packages included with Amazon Linux AMI, Amazon provides a yum repository consisting of common Linux applications for use inside Amazon EC2. Amazon Linux AMI is configured to point to this repository by default for all yum actions. Packages can be installed by issuing yum commands. For instance:

# sudo yum install httpd

Accordingly, you can install make through yum install make (you can get a list of all available packages through yum list all ).

Be sure that you don’t really need this, since Amazon Linux AMI was designed to be binary compatible with the CentOS release series, and therefore packages created to run on CentOS should also run on Amazon Linux AMI . [emphasis mine]

The desired pptpd package is not part of the standard CentOS repositories, although it is available, but available to third parties. Additional packages for Enterprise Linux (EPEL) (see Letter P ) - I can’t comment on the viability of using this and against compiling yours, though.

Good luck

+8
source

Make is not installed by default for AMI Amazon Linux. However, you can easily install it with yum. If you decide to install make, you may get some errors later for other packages during the compilation process. If you intend to compile the software, you can simply install all the development tools at once.

 sudo yum groupinstall "Development Tools" 
+3
source

Source: https://habr.com/ru/post/1399528/


All Articles