在CentOS 6.3上安装Tomcat 6

我有一个cPanel的CentOS 6.3服务器。 我想安装tomcat 6(不是cPanel支持的5.5)。

当我尝试:

yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps

我得到的错误:( 查看完整)

 Error: Package: jakarta-taglibs-standard-1.1.1-11.4.el6.noarch (base) Requires: apache-tomcat-apis You could try using --skip-broken to work around the problem ** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows: bandmin-1.6.1-5.noarch has missing requires of perl(bandmin.conf) bandmin-1.6.1-5.noarch has missing requires of perl(bmversion.pl) bandmin-1.6.1-5.noarch has missing requires of perl(services.conf) exim-4.77-1.i386 has missing requires of perl(SafeFile) frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0 sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6') 

我应该如何继续安装Tomcat 6? 谢谢!


yum repolist

 Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.sanctuaryhost.com * extras: centos.corenetworks.net * rpmforge: mirror.us.leaseweb.net * updates: mirror.thelinuxfix.com base | 3.7 kB 00:00 extras | 3.0 kB 00:00 updates | 3.5 kB 00:00 repo id repo name status base CentOS-6 - Base 4,701+75 extras CentOS-6 - Extras 4 rpmforge RHEL 6 - RPMforge.net - dag 4,372+86 updates CentOS-6 - Updates 341+28 repolist: 9,418 

grep exclude /etc/yum.conf

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*

我不熟悉cPanel,但它看起来像cPanelconfigurationyum排除apache*更新来保护它自己的包。

 Error: Package: jakarta-taglibs-standard-1.1.1-11.4.el6.noarch (base) Requires: apache-tomcat-apis 

jakarta-taglibs-standard需要apache-tomcat-apis但由于/etc/yum.conf的上述configuration,无法安装。 所以,试试这个:

 yum --disableexcludes=main install tomcat6 tomcat6-webapps tomcat6-admin-webapps