首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache mod_wsgi安装错误

Apache mod_wsgi安装错误
EN

Server Fault用户
提问于 2015-10-13 21:16:59
回答 1查看 5.7K关注 0票数 4

我正在运行CentOS 6.7,我正在尝试安装mod_wsgi (https://code.google.com/p/modwsgi/)

通常我会这样做:

百胜安装mod_wsgi

但是由于我需要确保它在Python2.7下编译(而不是CentOS默认的Python2.6版本),所以我决定下载回购(https://github.com/GrahamDumpleton/mod_wsgi/发行版),并确保它是为我的场景配置的。

在安装过程中,我遵循了office指南:https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide

唯一的区别是我更改了Python版本:

代码语言:javascript
复制
./configure --with-python=/usr/local/bin/python2.7

上述报税表:

代码语言:javascript
复制
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

运行使返回:

代码语言:javascript
复制
apxs -c -I/usr/local/include/python2.7 -DNDEBUG  -Wc,-g -Wc,-O2  src/server/mod_wsgi.c src/server/wsgi_*.c -L/usr/local/lib -L/usr/local/lib/python2.7/config  -lpython2.7 -lpthread -ldl  -lutil -lm
/bin/sh: apxs: command not found
make: *** [src/server/mod_wsgi.la] Error 127

任何帮助都将不胜感激!

EN

回答 1

Server Fault用户

发布于 2015-10-13 21:36:02

我错过了Apache工具:

yum安装httpd-devel

票数 3
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/728735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档