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

安装mod_wsgi 3.1时出错
EN

Stack Overflow用户
提问于 2010-01-22 01:44:05
回答 3查看 1.7K关注 0票数 0

我正在尝试在Ubuntu9.10上安装mod_wsgi 3.1,当我尝试在Ubuntu9.10上安装

代码语言:javascript
复制
root@me:/src/mod_wsgi-3.1$ ./configure --with-python=/usr/bin/python2.6
checking for apxs2... /usr/bin/apxs2
checking Apache version... 2.2.12
configure: creating ./config.status
config.status: creating Makefile

root@me:/src/mod_wsgi-3.1$ sudo make
/usr/bin/apxs2 -c -I/usr/include/python2.6 -DNDEBUG   mod_wsgi.c -L/usr/lib -L/usr/lib/python2.6/config  -lpython2.6 -lpthread -ldl  -lutil -lm
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0  -I/usr/include/python2.6 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo

/usr/share/apr-1.0/build/libtool: line 970: i486-linux-gnu-gcc: command not found
apxs:Error: Command failed with rc=65536
make: *** [mod_wsgi.la] Error 1

有什么问题吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2010-01-22 16:37:14

正确安装gcc编译器,它看起来不是所有的都在那里,或者可能根本不在那里。

票数 3
EN

Stack Overflow用户

发布于 2011-03-20 13:12:18

问题是你需要apache-dev试试这个

代码语言:javascript
复制
sudo apt-get install apache2-dev

在此尝试之后

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

跑得好:-)太棒了!

票数 3
EN

Stack Overflow用户

发布于 2012-12-06 14:30:41

apx:找不到命令

如果在运行配置时出现错误,则会显示: apxs: command not found。

然后,您将需要安装apache2-threaded-dev包(Ubuntu包名称,在不同的发行版上可能会有所不同。

apt-get安装aphe2-线程-开发

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

https://stackoverflow.com/questions/2111494

复制
相关文章

相似问题

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