Quand JPackage n'autorise pas l'installation de tomcat6 sous CentOS 5 ...
Ce billet à pour but de ne pas oublier cette petite manipulation concernant l'installation d'un Tomcat 6 sous centOS 5 :
Ajout du dépôt JPackage :
su -
cd /etc/yum.repos.d/
wget http://www.jpackage.org/jpackage50.repo
Installation de Tomcat 6 :
yum install tomcat6
On obtient l'erreur suivante :
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* epel: fr2.rpmfind.net
* jpackage-generic: mirror.ibcp.fr
* base: centos.crazyfrogs.org
* updates: centos.crazyfrogs.org
* jpackage-generic-updates: mirror.ibcp.fr
* extras: centos.crazyfrogs.org
* addons: centos.crazyfrogs.org
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package tomcat6.noarch 0:6.0.29-1.jpp5 set to be updated
--> Processing Dependency: tomcat6-lib = 6.0.29-1.jpp5 for package: tomcat6
--> Processing Dependency: java for package: tomcat6
--> Processing Dependency: jakarta-commons-logging for package: tomcat6
--> Processing Dependency: jakarta-commons-daemon for package: tomcat6
--> Running transaction check
---> Package java-1.6.0-openjdk.i386 1:1.6.0.0-1.16.b17.el5 set to be updated
--> Processing Dependency: libgif.so.4 for package: java-1.6.0-openjdk
--> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk
---> Package tomcat6-lib.noarch 0:6.0.29-1.jpp5 set to be updated
--> Processing Dependency: tomcat6-el-1.0-api = 6.0.29-1.jpp5 for package: tomcat6-lib
--> Processing Dependency: tomcat6-jsp-2.1-api = 6.0.29-1.jpp5 for package: tomcat6-lib
--> Processing Dependency: tomcat6-servlet-2.5-api = 6.0.29-1.jpp5 for package: tomcat6-lib
--> Processing Dependency: ecj for package: tomcat6-lib
--> Processing Dependency: /usr/share/java/ecj.jar for package: tomcat6-lib
--> Processing Dependency: jakarta-commons-dbcp-tomcat5 for package: tomcat6-lib
--> Processing Dependency: jakarta-commons-collections-tomcat5 for package: tomcat6-lib
--> Processing Dependency: jakarta-commons-pool-tomcat5 for package: tomcat6-lib
---> Package jakarta-commons-daemon.i386 1:1.0.1-6jpp.1 set to be updated
--> Processing Dependency: java-gcj-compat for package: jakarta-commons-daemon
--> Processing Dependency: libgcj_bc.so.1 for package: jakarta-commons-daemon
---> Package jakarta-commons-logging.i386 0:1.0.4-6jpp.1 set to be updated
--> Running transaction check
---> Package tzdata-java.i386 0:2010l-1.el5 set to be updated
---> Package tomcat6-servlet-2.5-api.noarch 0:6.0.29-1.jpp5 set to be updated
---> Package jakarta-commons-dbcp-tomcat5.noarch 0:1.2.2-2.jpp5 set to be updated
---> Package ecj.noarch 1:3.3.1.1-3.jpp5 set to be updated
---> Package jakarta-commons-pool-tomcat5.noarch 0:1.3-11.jpp5 set to be updated
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be updated
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: gjdoc for package: java-1.4.2-gcj-compat
---> Package libgcj.i386 0:4.1.2-48.el5 set to be updated
---> Package tomcat6-el-1.0-api.noarch 0:6.0.29-1.jpp5 set to be updated
---> Package jakarta-commons-collections-tomcat5.i386 0:3.2-2jpp.3 set to be updated
---> Package tomcat6-jsp-2.1-api.noarch 0:6.0.29-1.jpp5 set to be updated
---> Package eclipse-ecj.i386 1:3.2.1-19.el5.centos set to be updated
---> Package giflib.i386 0:4.1.3-7.1.el5_3.1 set to be updated
--> Running transaction check
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be updated
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
---> Package gjdoc.i386 0:0.7.7-12.el5 set to be updated
--> Processing Dependency: antlr for package: gjdoc
--> Running transaction check
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp.115 set to be updated
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat
---> Package antlr.i386 0:2.7.6-4jpp.2 set to be updated
--> Finished Dependency Resolution java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 from base has depsolving problems
--> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 (base)
Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 (base)
Résolution de l'installation :yum remove jpackage-utils
yum --disablerepo=jpackage* install jpackage-utils
yum install tomcat6
Et voilà, plus d’erreur, visiblement le paquet jpackage-utils de Jpackage ne fonctionne pas, donc on utilise celui des dépôts CentOS !