安装 mod_wsgi 3.1 时出错
我正在尝试在 Ubuntu 9.10 上安装 mod_wsgi 3.1,当我尝试执行“
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
问题是什么?”时收到此错误。
I am trying to install mod_wsgi 3.1 on Ubuntu 9.10 and am getting this error when I attempt to make
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
What is the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正确安装 gcc 编译器,它看起来不全部存在,或者可能根本不存在。
Install gcc compiler properly, it looks to not all be there, or possibly not at all.
问题是你需要 apache-dev
尝试
此后尝试
并运行良好:-)
伟人!
the problem is you need apache-dev
try this
after this try
And run well :-)
greats!
apxs:找不到命令
如果您在运行配置时遇到错误,提示:
apxs:未找到命令。
然后你需要安装 apache2-threaded-dev 软件包(Ubuntu 软件包名称,在不同的发行版上可能会有所不同。
apt-get install apache2-threaded-dev
apxs: command not found
If you get an error while running configure that says:
apxs: command not found.
Then you will need to install the apache2-threaded-dev package (Ubuntu package name, may be different on different distros.
apt-get install apache2-threaded-dev