问题与一个CentOS 5安装的mod_wsgi [英] Issue with installing mod_wsgi on a CentOS 5

查看:299
本文介绍了问题与一个CentOS 5安装的mod_wsgi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要上一个CentOS 64位和python3.2安装mod_wsgi的库,但现在给我这个错误,当我尝试运行'制作'命令,任何人都可以帮助我,在此先感谢!

  / usr / sbin目录/ apxs的-c -I在/ usr /本地/包括/ python3.2m -DNDEBUG mod_wsgi.c -L在/ usr / local / lib目录-L在/ usr / local / lib目录/ python3.2 /配置-lpython3.2 -lpthread -ldl -lutil -lm
在/ usr / lib64下/ APR-1 /构建/ libtool的--silent --mode = GCC编译 - preFER-PIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack保护器 - -param = SSP缓冲区大小= 4 -m64 -mtune =通用-fno严格走样-DLINUX = 2 -D_REENTRANT -D_GNU_SOURCE -pthread -I / usr / include目录/ httpd的-I / usr / include目录/ APR-1 -I / usr / include目录/ APR-1 -I在/ usr /本地/包括/ python3.2m -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c&放大器;&安培;触摸mod_wsgi.slo
mod_wsgi.c:在函数'wsgi_server_group:
mod_wsgi.c:949:警告:未使用的变量'值'
mod_wsgi.c:在函数'Log_writelines:
mod_wsgi.c:1732:警告:未使用的变量'味精'
mod_wsgi.c:在函数'Adapter_output:
mod_wsgi.c:3010:警告:未使用的变量'N'
mod_wsgi.c:在函数'Adapter_environ:
mod_wsgi.c:3589:警告:函数隐式声明PyCObject_FromVoidPtr
mod_wsgi.c:3589:警告:赋值时将整数指针,未作投
mod_wsgi.c:在函数'Adapter_file_wrapper:
mod_wsgi.c:4024:警告:​​未使用的变量结果
mod_wsgi.c:在函数'wsgi_python_term:
mod_wsgi.c:5631:警告:未使用的变量'TSTATE
mod_wsgi.c:5630:警告:未使用的变量插值
mod_wsgi.c:在函数'wsgi_python_child_init:
mod_wsgi.c:6760:警告:未使用的变量'L'
mod_wsgi.c:6658:警告:未使用的变量插值
mod_wsgi.c:在函数'wsgi_add_import_script:
mod_wsgi.c:7411:警告:未使用的变量'错误'
mod_wsgi.c:在函数'wsgi_add_handler_script:
mod_wsgi.c:7859:警告:未使用的变量'dconfig
mod_wsgi.c:7858:警告:未使用的变量'SCONFIG
mod_wsgi.c:在函数'Dispatch_environ:
mod_wsgi.c:8340:警告:赋值时将整数指针,未作投
mod_wsgi.c:在函数'wsgi_hook_handler:
mod_wsgi.c:8905:警告:建议用作真值赋值左右括号
mod_wsgi.c:8907:警告:建议用作真值赋值左右括号
mod_wsgi.c:8909:警告:建议用作真值赋值左右括号
mod_wsgi.c:8913:警告:建议用作真值赋值左右括号
mod_wsgi.c:8933:警告:建议用作真值赋值左右括号
mod_wsgi.c:8935:警告:建议用作真值赋值左右括号
mod_wsgi.c:8938:警告:建议用作真值赋值左右括号
mod_wsgi.c:在函数'wsgi_daemon_worker:
mod_wsgi.c:10227:警告:未使用的变量'时间'
mod_wsgi.c:10226:警告:未使用的变量'开始'
mod_wsgi.c:在函数'wsgi_hook_daemon_handler:
mod_wsgi.c:12423:警告:未使用的变量'我'
mod_wsgi.c:12421:警告:未使用的变量'的ELT
mod_wsgi.c:12420:警告:未使用的变量头
mod_wsgi.c:在函数'Auth_environ:
mod_wsgi.c:13299:警告:赋值时将整数指针,未作投
mod_wsgi.c:在顶层:
mod_wsgi.c:7122:警告:wsgi_set_py3k_warning_flag定义但未使用
mod_wsgi.c:7824:警告:​​wsgi_set_user_authoritative定义但未使用
mod_wsgi.c:14338:警告:wsgi_hook_check_user_id定义但未使用
在/ usr / lib64下/ APR-1 /构建/ libtool的--silent --mode =链接的gcc -o mod_wsgi.la -rpath在/ usr / lib64目录/的httpd /模块-module - 避免版本mod_wsgi.lo -L在/ usr / local / lib目录-L在/ usr / local / lib目录/ python3.2 /配置-lpython3.2 -lpthread -ldl -lutil -lm
在/ usr /斌/劳工处:找不到-lpython3.2
collect2:劳工处返回1退出状态
APXS:错误:命令失败,RC = 65536

使:*** [mod_wsgi.la]错误1


解决方案

您的Python 3.2安装似乎被打破,失位或建立错。即使你修复它,那也不会帮助,除非你使用从Subversion版本库主干mod_wsgi的像Python 3.2无法与官方压缩包版本一起使用。基于错误信息甚至看来你甚至可以尝试使用mod_wsgi的不是最新的官方压缩包的行号的旧版本不匹配的地方所期望的。

i have to install the mod_wsgi library on a CentOS 64bits and python3.2, but now is giving me this mistake when i try to run the 'make' command, anyone could help me, thanks in advance!

/usr/sbin/apxs -c -I/usr/local/include/python3.2m -DNDEBUG   mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python3.2/config  -lpython3.2 -lpthread -ldl  -lutil -lm
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/usr/local/include/python3.2m -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c: In function 'wsgi_server_group':
mod_wsgi.c:949: warning: unused variable 'value'
mod_wsgi.c: In function 'Log_writelines':
mod_wsgi.c:1732: warning: unused variable 'msg'
mod_wsgi.c: In function 'Adapter_output':
mod_wsgi.c:3010: warning: unused variable 'n'
mod_wsgi.c: In function 'Adapter_environ':
mod_wsgi.c:3589: warning: implicit declaration of function 'PyCObject_FromVoidPtr'
mod_wsgi.c:3589: warning: assignment makes pointer from integer without a cast
mod_wsgi.c: In function 'Adapter_file_wrapper':
mod_wsgi.c:4024: warning: unused variable 'result'
mod_wsgi.c: In function 'wsgi_python_term':
mod_wsgi.c:5631: warning: unused variable 'tstate'
mod_wsgi.c:5630: warning: unused variable 'interp'
mod_wsgi.c: In function 'wsgi_python_child_init':
mod_wsgi.c:6760: warning: unused variable 'l'
mod_wsgi.c:6658: warning: unused variable 'interp'
mod_wsgi.c: In function 'wsgi_add_import_script':
mod_wsgi.c:7411: warning: unused variable 'error'
mod_wsgi.c: In function 'wsgi_add_handler_script':
mod_wsgi.c:7859: warning: unused variable 'dconfig'
mod_wsgi.c:7858: warning: unused variable 'sconfig'
mod_wsgi.c: In function 'Dispatch_environ':
mod_wsgi.c:8340: warning: assignment makes pointer from integer without a cast
mod_wsgi.c: In function 'wsgi_hook_handler':
mod_wsgi.c:8905: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8907: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8909: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8913: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8933: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8935: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c:8938: warning: suggest parentheses around assignment used as truth value
mod_wsgi.c: In function 'wsgi_daemon_worker':
mod_wsgi.c:10227: warning: unused variable 'duration'
mod_wsgi.c:10226: warning: unused variable 'start'
mod_wsgi.c: In function 'wsgi_hook_daemon_handler':
mod_wsgi.c:12423: warning: unused variable 'i'
mod_wsgi.c:12421: warning: unused variable 'elts'
mod_wsgi.c:12420: warning: unused variable 'head'
mod_wsgi.c: In function 'Auth_environ':
mod_wsgi.c:13299: warning: assignment makes pointer from integer without a cast
mod_wsgi.c: At top level:
mod_wsgi.c:7122: warning: 'wsgi_set_py3k_warning_flag' defined but not used
mod_wsgi.c:7824: warning: 'wsgi_set_user_authoritative' defined but not used
mod_wsgi.c:14338: warning: 'wsgi_hook_check_user_id' defined but not used
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_wsgi.la  -rpath /usr/lib64/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/local/lib -L/usr/local/lib/python3.2/config -lpython3.2 -lpthread -ldl -lutil -lm
/usr/bin/ld: cannot find -lpython3.2
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1

解决方案

Your Python 3.2 installation appears to be broken, missing bits or build wrongly. Even if you fix it, that will not help unless you are using mod_wsgi from subversion repository trunk as Python 3.2 cannot be used with the official tarball versions. Based on error messages it even seems you may even be trying to use an older version of mod_wsgi than the latest official tarball as line numbers don't match up where would expect.

这篇关于问题与一个CentOS 5安装的mod_wsgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆