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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-06-2003, 12:31 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Rep:
|
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?
|
|
|
08-06-2003, 01:18 PM
|
#2
|
Member
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74
Rep:
|
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
|
|
|
08-06-2003, 02:43 PM
|
#3
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Original Poster
Rep:
|
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.
|
|
|
08-07-2003, 05:56 AM
|
#4
|
Member
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74
Rep:
|
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
|
|
|
08-07-2003, 01:15 PM
|
#5
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Original Poster
Rep:
|
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.
|
|
|
08-07-2003, 01:37 PM
|
#6
|
Member
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74
Rep:
|
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
|
|
|
08-07-2003, 04:11 PM
|
#7
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Original Poster
Rep:
|
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?
|
|
|
08-07-2003, 04:27 PM
|
#8
|
Member
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74
Rep:
|
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
|
|
|
08-08-2003, 04:54 AM
|
#9
|
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:
|
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???
|
|
|
08-08-2003, 10:32 AM
|
#10
|
Member
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74
Rep:
|
# rpm -ql tomcat
this gives you a list of all the files the package has installed
MN
|
|
|
All times are GMT -5. The time now is 09:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|