LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2003, 12:31 PM   #1
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Rep: Reputation: 30
Install Tomcat as Root?


New to Linux ( RH 8 ) Should I log in as root before installing Tomcat or can I install as my own user?
 
Old 08-06-2003, 01:18 PM   #2
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
generally all packages require you to be root to install them, however, in RH8, if it is an RPM file, it will simply prompt you for the root password, so you don't need to log in as root. I never log in as root, and always use the su command instead.

if you want to know about the su command, or if it's not an RPM, just ask
MN
 
Old 08-06-2003, 02:43 PM   #3
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks so much for your reply. (Scotland? I'm jealous!)

I tried to run the rpm command in the terminal without using su to root and received what looks like permission errors.

warning: tomcat4-4.0-1.noarch.rpm: V3 RSA/MD5 signature: NOKEY, KeyId 697ecedd
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm

It looks like these are issues stemming from not being root.

Should I use su - root and then run the rpm -ivh command on the tomcat package?

thanks again.
 
Old 08-07-2003, 05:56 AM   #4
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
yes.

sorry, I wasn't sure if you were happy using console, so i described the graphical method.

if you open up a konqueror or nautilus (depending on whether you use KDE or GNOME) then double-click the file, grpmi should open and prompt for the root password.

if you use the console, yes you should su to root before executing the rpm command:

$ su
root password: <type pasword>
# rpm -ivh tomcat.rpm
<chugs for a bit>
# exit
$

MN
 
Old 08-07-2003, 01:15 PM   #5
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
Thank you for your reply. I ran the rpm command as root as you suggested and did not receive any error messages. It was later that I discovered that the file was the wrong one. For those reading this post, the correct file to install tomcat is a gnu tar.
I used jakarta-tomcat-4.1.27-LE-jdk14.tar.gz to work with my pre-installed jdk 1.4. I ran the tar command as root and it installed.
 
Old 08-07-2003, 01:37 PM   #6
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
just running the tar command as root does not usually install, it just extracts. (in this case, as the RPM was "noarch" it may well have doen though) - if the RPM installed ok, it shopuld be on your system allready.

usually with .tar.gz files you need to compile it:
# ./configure
# make
# make install

anyway, glad you got it working.
MN
 
Old 08-07-2003, 04:11 PM   #7
lel800
Member
 
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228

Original Poster
Rep: Reputation: 30
I was curious as to the meaning of "noarch" and thought that it pertained to jakarta, so I did not think to ask. What is the meaning of "noarch"? How does it pertain to rpm?
 
Old 08-07-2003, 04:27 PM   #8
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
right, noarch refers to the architecture.
since RPM files usually contain binary files (which have to be compiled for a particular architecture, e.g. mac (PPC) or intel clone (ix86)) the file must identify which architecture it is for. The convention is to name files as follows:

packagename-1.2-3.arch.rpm

where arch is the architecture. you probably use a PC so probably will use i386, i586, i686, or ix86.
"noarch" means the package will run on any platform, because it usually means it does not contain any binary files.
"src" means it contains source code and has to be built with the rpmbuild --rebuild command before installing.
HTH
MN
 
Old 08-08-2003, 04:54 AM   #9
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Hi guys...

I'm trying to run tomcat 4.0.4 and have installed it:

(I can't install an newer version of tomcat 'cause it doesn't run with RedHatCMS properly....)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
BEGIN
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[root@localhost 404tomcat]# rpm -ivh tomcat4-4.0.4-full.2jpp.noarch.rpm
warning: tomcat4-4.0.4-full.2jpp.noarch.rpm: V3 RSA/MD5 signature: NOKEY, key ID 697ecedd
Preparing... ########################################### [100%]
1:tomcat4 ########################################### [100%]

Don't forget to setup vars in /etc/tomcat4/tomcat4.conf to
adapt the RPM to your configuration.
Also edit/create /etc/java.conf to define your default JDK

For security purposes, tomcat4 service is installed
but not activated by default.
use your service installer for such purposes
ie: ntsysv

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
END
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


But now, I'm trying to find the run files, either catalina.sh or startup.sh and I cant fiind it????

The release notes said here:

/var/cache/tomcat4/work

but it is empty.....?????

Any thoughts???
 
Old 08-08-2003, 10:32 AM   #10
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
# rpm -ql tomcat
this gives you a list of all the files the package has installed
MN
 
  


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
running tomcat with eclipse as non-root javcerty Linux - Newbie 4 04-16-2009 01:09 PM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 08:36 PM
non-root user unable to run tomcat with usb ports mar38 Linux - Software 0 07-21-2004 03:45 AM
tomcat install help please. mpower Linux - Software 3 07-16-2004 09:53 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration