简体   繁体   English

没有apxs的Apache

[英]Apache with no apxs

I am running Apache on a Synology 1512+. 我正在Synology 1512+上运行Apache。 I would like to do some development using python and have chose to use mod_wsgi to serve. 我想使用python进行一些开发,并选择使用mod_wsgi进行服务。 I initially installed ipkg and used that to instal mod_wsgi . 我最初安装了ipkg并将其用于安装mod_wsgi Unfortunately, it seems to have installed python 2.5 (and possible another apache) instead of using the currently installed Python 2.7 and the running Apache. 不幸的是,它似乎已经安装了python 2.5(可能还有另一个apache),而不是使用当前安装的Python 2.7和正在运行的Apache。 I decided to just try to compile my own mod_wsgi, but it appears that I am missing apxs? 我决定只尝试编译自己的mod_wsgi,但看来我缺少apxs吗?

The following is the error that I receive. 以下是我收到的错误。 I am at a loss for what to do next. 我对下一步的工作一无所知。 Using ipkg or compiling myself are my own two known options. 使用ipkg或自己编译是我自己的两个已知选项。 Am I able to just download a compiled version or something? 我可以下载编译版本或其他内容吗?

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

Use ipkg to install the development package for Apache corresponding to the core Apache package you installed. 使用ipkg来安装与您安装的核心Apache软件包相对应的Apache开发软件包。 The development package contains apxs, but more importantly contains the header files for Apache which mod_wsgi will need when it is being compiled. 开发包包含apxs,但更重要的是包含mod_wsgi在编译时需要的Apache头文件。 One can work around the lack of apxs, but if you do not have the correct Apache headers files, you cannot do anything. 可以解决缺少apx的问题,但是如果您没有正确的Apache标头文件,则无法执行任何操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM