免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3098 | 回复: 0
打印 上一主题 下一主题

mod_python安装出错,请教了! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-20 20:19 |只看该作者 |倒序浏览

我想安装Apahe+svn+Trac,其它的一切顺利,但就是安装mod_python报错,怎么都解决不了,请高手帮忙。谢谢!
环境版本如下:
[root@bogon mod_python-3.3.1]# rpm -qa | grep httpd
httpd-tools-2.2.15-29.el6.centos.x86_64
httpd-devel-2.2.15-29.el6.centos.x86_64
httpd-2.2.15-29.el6.centos.x86_64
[root@bogon mod_python-3.3.1]# rpm -qa | grep subversion
subversion-1.6.11-10.el6_5.x86_6

安装mod_python-3.3.1,在编译的时候出错。错误信息如下:
[root@bogon mod_python-3.3.1]# ./configure --prefix=/usr/local/mod_python/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... no
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... no
checking for apxs in /usr/local/apache/sbin... no
checking for apxs in your PATH... checking for apxs... /usr/sbin/apxs
found /usr/sbin/apxs, we'll use this. Use --with-apxs to specify another.
checking Apache version... 2.2.15
checking for Apache libexec directory... /usr/lib64/httpd/modules
checking for Apache include directory... -I/usr/include/httpd
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.6
checking Python install prefix... /usr
checking checking where python libraries are installed... /usr/lib64/python2.6
checking for Py_NewInterpreter in -lpython2.6... no
configure: error: Can not link to python
[root@bogon mod_python-3.3.1]#

一直找不到解决办法,谢谢各位了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP