Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-13-2013, 12:53 AM   #1
LQ Newbie
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
install tomcat on centOS

I tried to install tomcat6 on CentOS 5.5
using the cmd " yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps " and I get the following error.

java-1.4.2-gcj-compat- from base has depsolving problems
--> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat- (base)
Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat- (base)
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.

Help me!
Old 01-13-2013, 12:59 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Try doing a "yum update" before doing "yum install" -- it's possible that your local cache is not in sync with your yum repositories.
Old 01-13-2013, 03:42 AM   #3
Registered: Jul 2004
Distribution: slackware
Posts: 222

Rep: Reputation: 52
I strongly recommend to download a tar.gz package from and decompress it into a single directory. The issue with linux packages are that they put Tomcat all over the system and then you have VERY hard time understanding where is your configurations, where are your libs where are your webapps ad most importantly where are your context files. With tarball installation you have EVERYTHING in the same directory.

So to "install" the tarball, download it from, then either uncompress it to your home directory or if you wish to put in into /usr/local or /opt for example, you need to login as root and copy the file over to desired directory and uncompress it there. However then you also have to fiddle with group permissions: you need to add for example group named tomcat, make yourself a member of that group, logout/login so that the changes activate and then add group read/write permissions to the tomcat folder. So if you are not that strong linux user yet and what I described seems totally over your head, then uncompressing to home directory is the easiest way to go.

Also make sure you have environment variable JAVA_HOME pointing to JDK installation and not JRE. Lots of linuxes ship with JRE and Tomcat is unable to rune with it. You may need to download JDK from

Really easy.

Last edited by wigry; 01-13-2013 at 03:43 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install java and tomcat to CentOS release 5.4 anjanbacchu Linux - Server 4 06-11-2010 08:21 AM
Errors with apache tomcat 6.0.18 on a centOS 5.2 Asagath Linux - Server 4 02-02-2009 11:11 AM
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 03:28 PM
Centos: Using Yum and Tomcat Swakoo Linux - General 2 03-28-2007 12:46 AM
[SOLVED] Need to setup a subdomain in Tomcat 5.5.9 CentOS 4.2 thedonkdonk Linux - General 2 09-27-2006 09:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration