【问题标题】:Apache with no apxs没有 apxs 的 Apache
【发布时间】:2013-09-15 05:41:19
【问题描述】:

我在 Synology 1512+ 上运行 Apache。我想用python做一些开发,并选择使用mod_wsgi服务。我最初安装了ipkg 并用它来安装mod_wsgi。不幸的是,它似乎已经安装了 python 2.5(可能还有另一个 apache),而不是使用当前安装的 Python 2.7 和正在运行的 Apache。我决定只尝试编译我自己的 mod_wsgi,但似乎我缺少 apxs?

以下是我收到的错误。我不知道下一步该做什么。使用ipkg 或自己编译是我自己的两个已知选项。我可以只下载编译版本吗?

./configure --with-python=/usr/local/bin/python2.7

checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: ./configure.lineno: line 1704: apxs: not found
./configure: ./configure.lineno: line 1704: apxs: not found
./configure: ./configure.lineno: line 1705: apxs: not found
./configure: ./configure.lineno: line 1723: /: Permission denied    
./configure: ./configure.lineno: line 1877: apxs: not found
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in

【问题讨论】:

    标签: python-2.7 apache2 mod-wsgi synology apxs2


    【解决方案1】:

    使用 ipkg 安装与您安装的核心 Apache 包相对应的 Apache 开发包。开发包包含 apxs,但更重要的是包含 Apache 的头文件,mod_wsgi 在编译时需要这些头文件。可以解决缺少 apxs 的问题,但如果您没有正确的 Apache 头文件,您将无能为力。

    【讨论】:

    • 安装后删除所有这些 ipkg 的最简单方法是什么?我宁愿不要让所有这些东西四处飘荡。
    • 包管理器将提供一种删除您安装的包的方法,因此请查看包管理器的文档。请注意,您必须小心您删除的核心包可能已经安装了运行时所需的共享库或配置文件。不过,稍后删除 Apache 开发包应该没问题。
    • 嗨,我也尝试过这样做,但遇到了同样的错误。所以我用 ipkg 下载了 apache 包并尝试了--with-apxs=/opt/sbin/apxs 选项,但它说找不到 apxs 包……你知道我做错了什么吗?或者你能告诉我在哪里可以获得与 ds 上的 linux 版本兼容的“apache-dev”版本吗?
    • 顺便说一句...来自 ipkg 的 mod-wsgi 软件包带有 python 2.5 和另一个 apache.. 您必须自己配置和设置。如果它正在工作,我没有时间......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-05
    • 1970-01-01
    • 1970-01-01
    • 2014-12-22
    • 1970-01-01
    • 1970-01-01
    • 2012-04-19
    相关资源
    最近更新 更多