获取“不是动态可执行文件”运行“ldd mod_wsgi.o”在 CentOS 5.5 上
我已在 64 位 CentOS 5.5 上安装了 Python 2.7.1,并针对 2.7.1 编译了 mod_wsgi。我正在构建一个 DJango Web 应用程序,需要 2.7 版本的 Python 模块(CentOS 内置的 Python 版本只有 2.4.3,而且非常缺乏)。我基本上遵循了这个很棒的链接上的过程:
http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/
所以,我现在有了Python的工作版本2.7.1安装在/opt/python2.7.1中。但是,当我在 Apache 中安装 mod_wsgi.o 模块时,Apache 无法启动:
Cannot load /etc/httpd/modules/mod_wsgi.so into server:
/etc/httpd/modules/mod_wsgi.so: only ET_DYN and ET_EXEC can be loaded
因此,我针对我的 mod_wsgi.o 版本运行 ldd 命令,并且没有看到预期的共享库列表,而是看到:
[root@ac5w15tps01 modules]# ldd mod_wsgi.o
not a dynamic executable
目前,我的 Web 应用程序正在使用 mod_wsgi 运行,在 Python 2.4.3 上运行良好。其他人设置了它,所以不确定他们是否需要做任何特别的事情 - 我继承了这个设置。我已从 http://code.google.com/p/ 阅读了与构建和安装 mod_wsgi 相关的所有内容modwsgi/ 并在网上搜索答案。无法找到有关此错误的任何内容。
任何帮助将不胜感激!
I've installed Python 2.7.1 on 64-bit CentOS 5.5 and compiled mod_wsgi against 2.7.1. I'm building a DJango web application and need Python modules from 2.7 (CentOS built-in version of Python is only 2.4.3 and sorely lacking). I've basically followed the procedure on this great link:
http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/
So, I've now got a working version of Python 2.7.1 installed in /opt/python2.7.1. But, when I install my mod_wsgi.o module in Apache, Apache fails to start with:
Cannot load /etc/httpd/modules/mod_wsgi.so into server:
/etc/httpd/modules/mod_wsgi.so: only ET_DYN and ET_EXEC can be loaded
So, I ran the ldd command against my version of mod_wsgi.o and, instead of seeing the expected list of shared libraries, I see:
[root@ac5w15tps01 modules]# ldd mod_wsgi.o
not a dynamic executable
Currently, my web application is running with mod_wsgi working fine against Python 2.4.3. Someone else set that up so not sure if they needed to do anything special - I inherited the setup. I've read everything related to building and installing mod_wsgi from http://code.google.com/p/modwsgi/ and searched the web for answers. Can't see to find anything on this error.
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论