我如何使用/安装"使"亚马逊的Linux AMI的EC2? [英] How can I use/install "make" on the Amazon Linux AMI for EC2?

查看:151
本文介绍了我如何使用/安装"使"亚马逊的Linux AMI的EC2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是亚马逊EC2的新用户。

I'm a new user of Amazon EC2.

我要编译 PPTPD 包在EC2上,但收到以下错误:

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

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

我找遍了整个根目录树,但不可用:

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

我不知道是否制作实际安装在亚马逊的Linux AMI开始?如果不是,我怎么安装?

I'm wondering whether make is actually installed on the Amazon Linux AMI initially? If not, how do I install it?

推荐答案

借助亚马逊的Linux AMI 是(宽松)的基础上的 CentOS的并完全像样的操作系统的EC2,实际上它已针对亚马逊EC2的具体做法是:

Preface

The Amazon Linux AMI is (loosely) based on CentOS and a perfectly decent OS for EC2, in fact it has been tailored by Amazon for EC2 specifically:

亚马逊的Linux AMI是一个支持和维护 Linux映像   使用亚马逊的弹性计算所提供的Amazon Web服务的   云(Amazon EC2)。这是旨在提供一个稳定,安全,   高性能的执行环境运行的应用程序   亚马逊EC2。它还包括包,使易于集成   与AWS,[...]。亚马逊Web服务的提供持续的安全和   维护更新以运行亚马逊的Linux AMI的所有实例。 [...]的 [重点煤矿]

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

不过,这的确是没有广泛使用但一些其他的发行版,其中最流行的可能是Ubuntu的,因为它在一般的知名度和其专用的很长一段时间,特别定制支持EC2(见如的EC2StartersGuide ,在 Ubuntu的云图片或中的的Ubuntu的AMI亚马逊EC2 的上 alestic )的方便上市。这产生了两个缺点:

However, it is indeed not as widely used yet as some other distributions, with the most popular likely being Ubuntu due to its popularity in general and its dedicated long time tailored support of EC2 in particular (see e.g. the EC2StartersGuide, the Ubuntu Cloud Images or the convenient listing of the Ubuntu AMIs for Amazon EC2 on alestic). This yields two drawbacks:

  • 您会发现更多的例子/教程/等。对于EC2基于Ubuntu,使事情变得更容易,最终。
  • 您会发现可供CentOS的略少precompiled包,需要自己编译的最终的(见下文)。
  • You'll find much more examples/tutorials/etc. for EC2 based on Ubuntu, making things easier eventually.
  • You'll find slightly less precompiled packages available for CentOS, requiring compiling your own eventually (but see below).

这是说,CentOS的(和亚马逊的Linux AMI又将)使用百胜包管理器的安装从CentOS的(和第三方)库更新软件包的(是Debian / Ubuntu的使用 APT 包管理器而是 - 固有的概念非常相似,虽然),如见部分的添加软件包的在亚马逊的Linux AMI基础

That said, CentOS (and the Amazon Linux AMI in turn) uses the Yum package manager to install and update packages from CentOS (and 3rd party) Repositories (Debian/Ubuntu use the APT package manager instead - the inherent concepts are very similar though), see e.g. section Adding Packages in Amazon Linux AMI Basics:

在除包包含在亚马逊的Linux AMI,亚马逊   提供了一个yum软件库,包括常见的Linux应用程序   使用Amazon EC2内。亚马逊的Linux AMI被配置为指向   这个仓库默认情况下,所有的百胜行动。可以将程序包   通过发出命令百胜安装。例如:

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

#须藤yum的安装httpd的

因此​​,你可以通过安装使百胜安装化妆(您可以通过得到所有现成的程序包的列表百胜列出所有)。

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

虽然被告知,你可能实际上并不需要做的是,就的亚马逊的Linux AMI已建成与CentOS的系列版本的二进制兼容,因此包建成运行CentOS的还应该运行在亚马逊的Linux AMI 。 [重点煤矿]

Be advised though, that you might actually not need to do that, insofar the Amazon Linux AMI has been built to be binary-compatible with the CentOS series of releases, and therefore packages built to run on CentOS should also run on the Amazon Linux AMI. [emphasis mine]

所需的包 PPTPD 不是在CentOS或者虽然标准库的一部分,但它是在第三方的额外的企业版Linux(EPEL)库包(见的字母P ) - 我不能用这一个主场迎战编译你自己的,虽然生存能力评论

The desired package pptpd is not part of the standard repositories on CentOS either though, but it is available in the 3rd party Extra Packages for Enterprise Linux (EPEL) repository (see Letter P) - I can't comment on the viability of using this one vs. compiling your own though.

祝你好运!

这篇关于我如何使用/安装"使"亚马逊的Linux AMI的EC2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆