LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: Disabled
install tomcat on centOS


Hi,
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-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)
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!
Thanks.
 
Old 01-13-2013, 12:59 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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
wigry
Member
 
Registered: Jul 2004
Distribution: slackware
Posts: 218

Rep: Reputation: 52
I strongly recommend to download a tar.gz package from tomcat.apache.org 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 tomcat.apache.org, 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 java.oracle.com

Really easy.

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


Reply


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


All times are GMT -5. The time now is 12:36 PM.

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