Linux - NewbieThis 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
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.
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.
Recently, I downloaded apache-tomcat-6.0.40.src file.
According to apache-tomcat, the latest version is 6.0.18. And why you downloaded the source and not the binary?
Anyway you can try to run it replacing $CATALINA_HOME with the full path to the directory you've extracted the archive you downloaded, e.g:
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370
Rep:
What is the Linux distribution and release that you are using? There are several ways to install applications and programs depending upon the distribution you are using.
[root@localhost ~]# chmod +x /usr/bin/apache-tomcat-6.0.18-src/bin/startup.sh
[root@localhost ~]# /usr/bin/apache-tomcat-6.0.18-src/bin/startup.sh
Cannot find /usr/bin/apache-tomcat-6.0.18-src/bin/catalina.sh
This file is needed to run this program
[root@localhost ~]# /usr/bin/apache-tomcat-6.0.18-src/bin/startup.sh
Using CATALINA_BASE: /usr/bin/apache-tomcat-6.0.18-src
Using CATALINA_HOME: /usr/bin/apache-tomcat-6.0.18-src
Using CATALINA_TMPDIR: /usr/bin/apache-tomcat-6.0.18-src/temp
Using JRE_HOME: /usr/java/jdk1.6.0_11
touch: cannot touch `/usr/bin/apache-tomcat-6.0.18-src/logs/catalina.out': No such file or directory
/usr/bin/apache-tomcat-6.0.18-src/bin/catalina.sh: line 292: /usr/bin/apache-tomcat-6.0.18-src/logs/catalina.out: No such file or directory
touch: cannot touch `/usr/bin/apache-tomcat-6.0.18-src/logs/catalina.out': No such file or directory
Does the directory /usr/bin/apache-tomcat-6.0.18-src/logs exists? If not you have to create it.
BTW you didn't answer why you use the source distribution and not the binary and AuroraCA's question regarding your distro. If you're using a distro like Fedora, Suse and others you may need to configure selinux to allow tomcat run.
@Ashhere: I would also recommend that you pick up a book on Linux for beginners. A big part of the FOSS world (especially when compiling from source) is understanding basic error messages and correcting them. A good foundation will make your experience a lot more pleasant.
Actually, I am fairly new to linux that I dont know the difference between source and binary files. I'd be thankful if you could it explain me. And also the probs with source files.
Quote:
I am using redhat 5...
Also, sorry for being so inexperienced....am trying to improve..if you could suggest me some good books just as a startup...
And thanks for the replies...
And now,
Quote:
Does the directory /usr/bin/apache-tomcat-6.0.18-src/logs exists? If not you have to create it.
I created one and then...
[root@localhost ~]# /usr/bin/apache-tomcat-6.0.18-src/bin/startup.shUsing CATALINA_BASE: /usr/bin/apache-tomcat-6.0.18-src
Using CATALINA_HOME: /usr/bin/apache-tomcat-6.0.18-src
Using CATALINA_TMPDIR: /usr/bin/apache-tomcat-6.0.18-src/temp
Using JRE_HOME: /usr/java/jdk1.6.0_11
[root@localhost ~]#
I guess the app is now installed properly...but I cannot get the homepage of apache when using http://localhost:8080/
In general, a binary distribution is pre-compiled for your OS version and architecture. This is usually the easiest way to install an application. A source distribution requires that you (assuming you have installed all the tools needed for building the app) configure, compile, and then install it. This is usually the only way to set customized build-time options.
As for books, a really comprehensive (i.e. beginner all the way to advanced level) book to pick up is Linux Administration Handbook (2nd Edition) by Evi Nemeth, Garth Snyder, Trent R. Hein. It might be a little overwhelming to a new user, so I would supplement it with a true beginner-level book that focuses on your distro - whatever that may be.
Finally, give yourself some time and be patient. IMO, Tomcat is a bit of a beast to understand and configure properly (especially if you intend to front-end it with Apache web server and a connector).
Thanks a lot anomie. U made it pretty clear to me about binary and source files.
Anyways have started from the beginning.
If you could suggest a solution to my problem too!! Actualy, I need to configure tomcat urgently and with my limited knowledge, I dont think I will be able to get to configuring web servers within this time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.