apache httpd 和 hsphere 下 CentOS 上的 mod_python
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/166418/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
mod_python on CentOS under httpd and hsphere
提问by Simon
I have asked our hosting provider to add mod_python to our httpd server. The server appears to be in an hsphere cluster and they appear to use yum to administer it. He is reporting some dependencies missing and I do't quite understand how that could have come about.
我已经要求我们的托管服务提供商将 mod_python 添加到我们的 httpd 服务器。服务器似乎在 hsphere 集群中,他们似乎使用 yum 来管理它。他报告缺少一些依赖项,我不太明白这是怎么发生的。
versions (this is as much as I have been given): CentOS 5 apache - 2 (but he's not sure about the exact version) mod_python - 3.3.1 numpy - 1.1.1 scipy - 0.6.0 yum - 3.2.8 hsphere - 3.1 patch 1
版本(这和我得到的一样多):CentOS 5 apache - 2(但他不确定确切的版本) mod_python - 3.3.1 numpy - 1.1.1 scipy - 0.6.0 yum - 3.2.8 hsphere - 3.1补丁1
The error he is reporting is as follows:
他报的错误如下:
yum install mod_python
...
Package mod_python.i386 0:3.2.8-3.1 set to be updated
Processing Dependency: httpd >- 2.0.40 for package: mod_python
Processing Dependency: httpd-mmn = 20051115 for package: mod_python
Finished Dependency Resolution
Error: Missing Dependency: httpd >= 2.0.40 is needed by package mod_python
Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_python
Not being a UNIX admin I only have a naive guess about this, but the message would seem to suggest that there is a version mismatch between httpd and mod_python rather than the dependencies being missing completely.
不是 UNIX 管理员,我对此只有天真的猜测,但该消息似乎表明 httpd 和 mod_python 之间存在版本不匹配,而不是完全缺少依赖项。
So my question is, what should I ask/tell the Administrator to do?
所以我的问题是,我应该问/告诉管理员做什么?
Is there something obviously wrong with the combination of components above?
上面的组件组合有什么明显的问题吗?
回答by GuiSim
We have mod_python 3.3 running on Apache 2.2 on a CentOS (forgot the version). All we did is download the tar.gz (from http://httpd.apache.org/modules/python-download.cgi) , extract it...
我们在 CentOS 上的 Apache 2.2 上运行 mod_python 3.3(忘记版本了)。我们所做的只是下载 tar.gz(来自http://httpd.apache.org/modules/python-download.cgi),解压它...
$ ./configure --with-apxs=/usr/local/apache2/bin/apxs
$ ./make
$ su
$ make install
Everything works fine. We couldn't use yum so everything is built from source. My suggestion would be to try to build from source.
一切正常。我们不能使用 yum,所以一切都是从源代码构建的。我的建议是尝试从源代码构建。
回答by warren
My first reaction would be to yum update apache(or just a yum update).
我的第一反应是yum update apache(或只是一个yum update)。
Then try the yum install mod_python.
然后尝试yum install mod_python.
回答by warren
also getting same issue
也遇到同样的问题
--> Running transaction check ---> Package mod_python.i386 0:3.2.8-3.1 set to be updated --> Processing Dependency: httpd >= 2.0.40 for package: mod_python --> Processing Dependency: httpd-mmn = 20051115 for package: mod_python --> Finished Dependency Resolution Error: Missing Dependency: httpd >= 2.0.40 is needed by package mod_python Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_python
--> 运行事务检查 ---> 包 mod_python.i386 0:3.2.8-3.1 设置为更新 --> 处理依赖:httpd >= 2.0.40 包:mod_python --> 处理依赖:httpd-mmn = 20051115 用于包:mod_python --> 完成依赖解析错误:缺少依赖:httpd >= 2.0.40 需要包 mod_python 错误:缺少依赖:httpd-mmn = 20051115 需要包 mod_python

