« OpenBSD Journal | Main | Someone asked for Abe? »

Spare you the pain - My trip down the I want to install jakarta-tomcat41 port road - Part I

     I was hoping to spare others the pain that I have endured this weekend while trying my hardest to get the Jakarta/Tomcat server installed on my latest machine. You would think that having installed this port umteen times before this weekend would have been enough, but nooo... Well, I'll make this short. Here are the tricks necessary to install Tomcat on FreeBSD:

- go to /usr/ports/www/jakarta-tomcat41/ and run 'make install all clean'

This will take some time, so make yourself coffee, tea or whatever your pleasure...
- go to /usr/ports/www/jfc/ and run

make install all

- download the necessary files
- re-run
make install all

- run
make extract

- cd to /usr/ports/www/jdk12/ and run
make install all

- download the necessary files
- run
make clean

- cd to /usr/ports/www/jfc/ and run
make extract

- cd to /usr/ports/www/jdk12/ and run
make install all

- ohhh yeah... it really isn't simple!

A quick note, this is so complicated because the licensing for Java does not allow one to simply redistibute the different sources as one would wish (which I can understand and yet be irritated by), so each time your
make install
crashes with error code 1, if you read carefully, it is usually because you need to manually download part of the sources required for building jakarta-tomcat

- if you are on a PII machine, you will be waiting some time... which is where I am currently at. I will continue as progress is made. The important thing to note is that attempting to install the jakarta-tomcat41 port directly has not worked, so each time I encountered error code 1, it meant going back to a dependancy of the java base and installing that first.
- if you are finally able to get /usr/ports/java/jdk12 installed, then the next step is as simple as cake: cd to /usr/ports/www/jakarta-tomcat41 and run

make all install clean
. Even on a PII 450, this only took about 1 min because all that was done was install the server - most of the server objects were already compiled and ready to install...

A final note:
I will sit down and do this whole routine again (on a faster machine, however) and write down the actual steps taken - which includes all of the different source files that were needed to make this work. I can tell you for sure, however, that I had to download the following four files from Sun and Javasoft's website (I never paid any attention to see how javasoft was funded):
bsd-jdk122-patches-11.tar.gz
jakarta-tomcat-4.1.18.tar.gz
jdk-1_2_2_013-linux-i586.tar.gz
jdk1_2_2-src.tar.gz (I don't entirely understand why I needed the linux and fbsd sources...)
swing1_1_1.zip
This last one is a pain - the port ends in error code 1 and asks for jfc1.1.1, when in fact the file it is looking for is swing1_1_1.zip but won't uncover unless you extract the files (using

make extract
) under the /usr/local/java/jfc port... Talk about a pain. This is definitely one of those times where the simple "what just works" adage would be nice. I think most of the complications are due to Sun's licensing restrictions, though. And, because Sun put most of the work into developing Java, I guess that is okay.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on March 9, 2003 8:30 PM.

The previous post in this blog was OpenBSD Journal.

The next post in this blog is Someone asked for Abe?.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.