首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Amazon EC2、micro和python问题上构建nginx1.0.4

在Amazon EC2、micro和python问题上构建nginx1.0.4
EN

Server Fault用户
提问于 2011-06-21 20:23:54
回答 2查看 1.1K关注 0票数 1

我想在我的apache2微实例上使用EC2作为反向代理运行nginx。百胜安装nginx给我nginx -0.8.53-1.2.amzn1.x86_64 yum当前nginx为1.0.4

我找到并遵循了这个指南:http://kdn2.info/2011/05/install-nginx-on-amazon-ec2/ --它工作得很好--直到并包含"make“。

当我到了查克金斯托尔

代码语言:javascript
复制
ERROR: ld.so: object '/usr/lib/installwatch.so' from LD_PRELOAD cannot be preloaded: ignored.
test -d '/var/log/nginx' ||             mkdir -p '/var/log/nginx'
ERROR: ld.so: object '/usr/lib/installwatch.so' from LD_PRELOAD cannot be preloaded: ignored.
make[1]: Leaving directory `/root/src/nginx-1.0.4'

======================== Installation successful ==========================
Copying documentation directory...
./
./CHANGES
./LICENSE
./README
cp: cannot stat `//var/tmp/gRWoVgIcdbmjfTjoVGBM/newfiles.tmp': No such file or directory

Copying files to the temporary directory...OK
Striping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building RPM package... FAILED!
*** Failed to build the package

...and日志文件中满是:

代码语言:javascript
复制
Building target platforms: x86_64
Building for target x86_64
Processing files: nginx-1.0.4-1.x86_64
error: File not found: /usr/src/rpm/BUILDROOT/nginx-1.0.4-1.x86_64/usr
error: File not found: /usr/src/rpm/BUILDROOT/nginx-1.0.4-1.x86_64/usr/doc

有/usr/src/rpm/BUILDROOT/nginx-1.0.4-1.x86_64/但没有/usr

沿着这一页再往下看,它说:

“例如,如果我们想使用PHP5.2,我们可以从CentosALT库下载与Amazon (Xen内核)兼容的PHP和Nginx。”

所以我安装了两个存储库,但是当我

代码语言:javascript
复制
yum install http://centos.alt.ru/pub/nginx/1.0/RPMS/x86_64/nginx-stable-1.0.4-1.el5.x86_64.rpm

我得到了

代码语言:javascript
复制
Error: Package: nginx-stable-1.0.4-1.el5.x86_64 (/nginx-stable-1.0.4-1.el5.x86_64)
           Requires: perl(:MODULE_COMPAT_5.8.8)  You could try using --skip-broken to work around the problem

但这并不能解决问题。

当我更新的时候,我得到

代码语言:javascript
复制
--> Finished Dependency Resolution
Error: Package: python-distribute-0.6.19-10.1.x86_64 (devel_languages_python)
           Requires: python < 2.5
           Installed: 1:python-2.6-1.19.amzn1.noarch (@amzn-main)
               python = 1:2.6-1.19.amzn1
Error: Package: python-distribute-0.6.19-10.1.i586 (devel_languages_python)
           Requires: python < 2.5
           Installed: 1:python-2.6-1.19.amzn1.noarch (@amzn-main)
               python = 1:2.6-1.19.amzn1

我试过所有的东西

如果有人对当前1.04 nginx正在EC2微上工作(Linux 10-56-63-85 2.6.35.11-83.9.amzn1.x86_64 #1 SMP )有任何建议或已知的软件包,我认为这是RHEL 5?那我会很感激的。

顺便说一句,这位评论家看上去对吗?

代码语言:javascript
复制
repo id                                 repo name                                                                          status
CentALT                                 CentALT Packages for Enterprise Linux 5 - x86_64                                   enabled:   112+157
amzn-main                               amzn-main-Base                                                                     enabled:     2,706
amzn-main-debuginfo                     amzn-main-debuginfo                                                                disabled
amzn-main-nosrc                         amzn-main-nosrc                                                                    disabled
amzn-updates                            amzn-updates-Base                                                                  enabled:       328
amzn-updates-debuginfo                  amzn-updates-debuginfo                                                             disabled
amzn-updates-nosrc                      amzn-updates-nosrc                                                                 disabled
devel_languages_python                  Python and Python Modules (SLE_10)                                                 enabled: 1,452+768
epel                                    Extra Packages for Enterprise Linux 5 - x86_64                                     enabled: 5,892+604
epel-debuginfo                          Extra Packages for Enterprise Linux 5 - x86_64 - Debug                             disabled
epel-source                             Extra Packages for Enterprise Linux 5 - x86_64 - Source                            disabled
epel-testing                            Extra Packages for Enterprise Linux 5 - Testing - x86_64                           disabled
epel-testing-debuginfo                  Extra Packages for Enterprise Linux 5 - Testing - x86_64 - Debug                   disabled
epel-testing-source                     Extra Packages for Enterprise Linux 5 - Testing - x86_64 - Source                  disabled
s3tools                                 Tools for managing Amazon S3 - Simple Storage Service (RHEL_6)                     enabled:       2+1
repolist: 10,492
EN

回答 2

Server Fault用户

发布于 2012-04-14 10:55:23

顺便提一句,nginx包现在是以RPM格式提供的,因此后续人员不一定会在构建软件时遇到OP的问题。

http://nginx.org/en/download.html

我不知道Amazon是如何在yum设置方面被标记的,但是RHEL5 5/6就在上面。

在最坏的情况下,有人可以抓住适当的SRPM,并从那里重建。

http://nginx.org/packages/rhel/5/SRPMS/

票数 1
EN

Server Fault用户

发布于 2012-03-13 14:57:21

我在CentOS 6上遇到了同样的问题

我认为您可以通过禁用epelCentALT存储库或将此选项添加到yum:yum install nginx --disablerepo=epel,CentALT来克服这一问题。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/282767

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档