我对 Linux 完全陌生,但已经开发了一个 Python3 Django 应用程序,我被要求将其部署到运行在 Debian 7.8 上的 apache Web 服务器上。
为此,我遵循 Django 指南,告诉我使用以下方式安装 mod_wsgi本教程。
当我运行 ./configure 时,我得到的结果如下:
$ ./configure --with-python=/usr/local/bin/python3
checking for apxs2... no
checking for apxs... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for prctl... yes
checking Apache version... ./configure: line 2765: apxs: command not found
./configure: line 2765: apxs: command not found
./configure: line 2766: apxs: command not found
./configure: line 2769: /: Is a directory
./configure: line 2964: apxs: command not found
configure: creating ./config.status
config.status: creating Makefile
我尝试安装 apache2-dev buapt-get install apache2-dev
但它只是给我E: Unable to locate package apache2-dev
。
我可以在哪里获得 apxs2?
答案1
我认为 apache2-dev 是 apache2-threaded-dev 提供的虚拟包。安装它应该可以满足您的需求。