Mod Mono CentOS 安装 - 依赖项:>= httpd 2.2

Mod Mono CentOS 安装 - 依赖项:>= httpd 2.2

我一直尝试使用 Cpanel 在 CentOS 5.5 上安装 Mono。一切都很顺利,直到我需要安装 mod mono 附加组件。我收到缺少依赖项的错误,非常感谢任何帮助。

尝试安装 mod mono:

root@ns223540 [~]# yum install mod_mono-addon              
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ovh.net
 * epel: mirror.ibcp.fr
 * extras: mirror.ovh.net
 * updates: mirror.ovh.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_mono-addon.i386 0:2.10-6.9 set to be updated
--> Processing Dependency: httpd >= 2.2 for package: mod_mono-addon
---> Package mod_mono-addon.x86_64 0:2.10-6.9 set to be updated
--> Processing Dependency: httpd >= 2.2 for package: mod_mono-addon
--> Finished Dependency Resolution
mod_mono-addon-2.10-6.9.x86_64 from Mono has depsolving problems
--> Missing Dependency: httpd >= 2.2 is needed by package mod_mono-addon-2.10-6.9.x86_64 (Mono)
mod_mono-addon-2.10-6.9.i386 from Mono has depsolving problems
--> Missing Dependency: httpd >= 2.2 is needed by package mod_mono-addon-2.10-6.9.i386 (Mono)
Error: Missing Dependency: httpd >= 2.2 is needed by package mod_mono-addon-2.10-6.9.i386 (Mono)
Error: Missing Dependency: httpd >= 2.2 is needed by package mod_mono-addon-2.10-6.9.x86_64 (Mono)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                    package-cleanup --dupes
                    rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

检查 httpd 版本

root@ns223540 [~]# rpm -q httpd              
package httpd is not installed

尝试安装 httpd

root@ns223540 [~]# yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ovh.net
 * epel: mirror.ibcp.fr
 * extras: mirror.ovh.net
 * updates: mirror.ovh.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package httpd available.
Nothing to do

答案1

如果您使用 cPanel,我认为您需要使用 easyapache。如果您仍想使用 yum,则需要检查 /etc/yum.conf 中是否未列出 httpd 排除行!从那里删除它并使用 yum 安装 httpd

相关内容