在 CentOS 5 上安装 mod_wsgi 时出现问题

发布于 2024-10-29 05:47:43 字数 3688 浏览 1 评论 0原文

我必须在 CentOS 64 位和 python3.2 上安装 mod_wsgi 库,但现在当我尝试运行“make”命令时出现这个错误,任何人都可以帮助我,提前感谢!

/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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

层林尽染 2024-11-05 05:47:43

您的 Python 3.2 安装似乎已损坏、缺少位或构建错误。即使您修复了它,除非您使用 subversion 存储库主干中的 mod_wsgi,否则也无济于事,因为 Python 3.2 无法与官方 tarball 版本一起使用。根据错误消息,您甚至可能尝试使用比最新官方 tarball 更旧版本的 mod_wsgi,因为行号与预期不匹配。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文