Installing Red5 and Java on Slicehost Ubuntu Gusty 7.1

For those of you trying to install the Java 5 Runtime J2SE 1.5 on Ubuntu Linux Gusty on a fresh Slicehost install (or any Ubuntu box) that cant install it via aptitude, I may have a solution.

Upon downloading Red5 and trying to install the .deb, I was greeted with a dependency error. Great. So then, naturally, I tried to use aptitude and apt-get to install the Java runtime, but surprisingly enough, that did not work for me at all. So I figured I’d download the Java package myself and install it manually.

So here I am dpkging away, and I am greeted with even more dependency errors, which, by the way, where completely ridiculous. Oh you know, as in, sun-java-bin required sun-java-jre to be installed before itself could be, but oh! sun-java-jre needed sun-java-bin to be installed before IT could be installed.

Is it just me, or is that completely obnoxious?

So I remembered that on one of the dependency outputs, it required ia32-libs. So I was like “ok, well let’s try that one”. Bingo.

It installed and configured, not only that, but as well as the 2 Java debs.

So class, the command of the day is:

sudo aptitude install ia32-libs

Hope this helps any of you wondering why Java wont install for your fresh new server.

Update:

To make sun-java the default JVM, follow these steps:

$ sudo update-java-alternatives -s java-1.5.0-sun //this adds the new JVM

edit the file /etc/jvm

add the following line to the top: /usr/lib/jvm/java-1.5.0-sun

Run java -version, and you should see:

java version “1.5.0_15″ Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode)

Tags:

One Response to “Installing Red5 and Java on Slicehost Ubuntu Gusty 7.1”

  1. Sunil Says:

    Nice piece of Information.

Leave a Reply