LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install tomcat on centOS (https://www.linuxquestions.org/questions/linux-newbie-8/install-tomcat-on-centos-4175445353/)

kalidha 01-13-2013 12:53 AM

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.

btmiller 01-13-2013 12:59 AM

Try doing a "yum update" before doing "yum install" -- it's possible that your local cache is not in sync with your yum repositories.

wigry 01-13-2013 03:42 AM

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.


All times are GMT -5. The time now is 07:57 AM.