在amazon linux上哪里可以找到apxs ?

时间:2022-01-20 15:06:30

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

我正在尝试开始一个AWS网站,并使用免费的Amazon Linux安装层。我从源代码中安装了python3.3,但是它附带的wsgi是用于python2.6的,所以我尝试从源代码中安装mod_wsgi3.3,在这一点上我得到了。

./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

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).

在我的一生中,我没有找到一个有用的在线资源来告诉我如何在这个系统上安装apxs。建议都是针对ubuntu的,因此sudo apt-get安装apache2{}-dev,在那里“{}”可以不用任何东西替换,或者-worker或-thread或-prefork;这些都没有在我的系统上使用(使用sudo yum安装)。

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.

我应该找一个不同的包名吗?如果是,它是什么/我在哪里可以找到潜在的包?sudo yum搜索apache不会产生任何apache2。

Please help.

请帮助。

1 个解决方案

#1


3  

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.

首先,如果您正在使用Amazon Linux或任何基于RPM的Linux发行版,您应该使用“httpd”而不是“apache2”。Apache在Debian家族中使用。

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>

我认为您可以通过安装httpd-devel包来解决这个问题。尝试yum搜索httpd-devel并选择所需的版本,然后进行yum安装httpd-devel <包版本> 。

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

有时,仅仅启动yum安装httpd-devel就可以完成这项工作。

#1


3  

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.

首先,如果您正在使用Amazon Linux或任何基于RPM的Linux发行版,您应该使用“httpd”而不是“apache2”。Apache在Debian家族中使用。

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>

我认为您可以通过安装httpd-devel包来解决这个问题。尝试yum搜索httpd-devel并选择所需的版本,然后进行yum安装httpd-devel <包版本> 。

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

有时,仅仅启动yum安装httpd-devel就可以完成这项工作。