為 mod_wsgi 安裝 apache2-dev

為 mod_wsgi 安裝 apache2-dev

我對 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 bu runningapt-get install apache2-dev但它只給了我E: Unable to locate package apache2-dev.

我在哪裡可以獲得 apxs2?

答案1

我認為apache2-dev是apache2-threaded-dev提供的虛擬套件。安裝它應該可以滿足您的需求。

相關內容