我在哪里可以在Amazon Linux上找到apxs? [英] Where can I find apxs on amazon linux?

查看:155
本文介绍了我在哪里可以在Amazon Linux上找到apxs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开始使用AWS网站,并使用了免费的Amazon Linux安装.我从源代码安装了python3.3,但是它附带的wsgi是用于python2.6的,因此我也尝试从源代码安装mod_wsgi3.3,这时我明白了

I'm trying to get started with an AWS website, and used the free tier Amazon Linux installation. I installed python3.3 from source, but the wsgi it comes with is for python2.6 so I tried installing mod_wsgi3.3 from source as well, at which point I get

./configure --with-python=/usr/local/bin/python3
checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line 1704: apxs: command not found
./configure: line 1704: apxs: command not found
./configure: line 1705: apxs: command not found
./configure: line 1708: /: is a directory

./configure: line 1877: apxs: command not found
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in

就我的一生而言,我还没有找到一个有用的在线资源来告诉我如何在该系统上安装apxs.建议都是针对ubuntu的,因此sudo apt-get install apache2{}-dev其中'{}'不能被替换为-worker-threaded-prefork;这些都没有在我的系统上工作(而是使用sudo yum install).

and for the life of me, I have not found a single helpful online source to tell me how to get apxs installed on this system. Suggestions have all been for ubuntu, and hence sudo apt-get install apache2{}-dev where '{}' can be replace with nothing, or -worker or -threaded or -prefork; none of these have worked on my system (using sudo yum install instead).

我应该寻找其他包装名称吗?如果是这样,那是什么/在哪里找到潜在的包裹? sudo yum search apache不产生任何apache2.

Is there a different package name I should be looking for? If so, what is it/where do I find potential packages? sudo yum search apache doesn't yield any apache2.

请帮助.

推荐答案

首先,如果您使用的是Amazon Linux或任何基于RPM的Linux发行版,则应使用"httpd"而不是"apache2".在Debian系列中使用Apache.

First of all if you are using Amazon Linux or any RPM based linux distro, you should use "httpd" rather than "apache2". Apache use in Debian family.

我认为您可以通过安装httpd-devel软件包来解决此问题. 尝试 yum search httpd-devel 并选择所需的版本,然后执行yum install httpd-devel <package version>

I think you can resolve this issue by installing httpd-devel package. Try yum search httpd-devel and choose required version and then do yum install httpd-devel <package version>

有时候开枪yum install httpd-devel可以完成这项工作.

Sometime just firing yum install httpd-devel can do the job.

这篇关于我在哪里可以在Amazon Linux上找到apxs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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