gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 12:04:01 24 4
gpt4 key购买 nike

我正在尝试开始使用 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

在我的一生中,我还没有找到一个有用的在线资源来告诉我如何在这个系统上安装 apxs。建议都是针对 ubuntu 的,因此 sudo apt-get install apache2{}-dev 其中 '{}' 可以替换为空,或者 -worker-threaded-prefork;这些都不能在我的系统上运行(改为使用 sudo yum install)。

我应该寻找不同的包名吗?如果是这样,它是什么/我在哪里可以找到潜在的包裹? sudo yum search apache 不产生任何 apache2

请帮忙。

最佳答案

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

我想你可以通过安装 httpd-devel 包来解决这个问题。尝试 yum search httpd-devel并选择所需的版本,然后执行 yum install httpd-devel <package version>

有时只是开火 yum install httpd-devel可以胜任这项工作。

关于linux - 我在哪里可以找到 amazon linux 上的 apxs?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21539759/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com