You are here: osflash » red5 » fc4

Setting up Red5, version 0.6 RC1, on Fedora Core 4.

Installing Red5, version 0.6 RC1 takes 4 steps

  1. Installing the Java 1.5 JDK
  2. Installing Apache Ant.
  3. Setting the right Path Variables
  4. Installing Red 5

First of all, you will need to be logged in as root. In this howto I’m using bash as shell

Step 1. Installing the Java 1.5 JDK

The default Java jdk that comes with FC4 will not work! So the first thing we need to do is install the 1.5 jdk You can find detailed instructions here or follow the short instructions below.

You will need to download the jdk 1.5 from java.sun.com. Download the dk-1_5_0_06-linux-i586.bin file, NOT the .rpm.

Fedora Core 4 users are advised not to use the Java RPM provided by Sun. It contains Provides that conflict with names used in packages provided as part of Fedora Core 4. Because of this, Sun Java might disappear from an installed system during package upgrade operations.

We will be building an rpm from the bin file. Before we can do that we need to have fedora-rpmdevtools installed

Assuming you are in root’s homedir

[root@hostname ~]# yum install fedora-rpmdevtools

When installation is complete (and succeded) we build the rpmbuild tree

[root@hostname ~]# fedora-buildrpmtree

Check to see if you have an rpmbuild directory:

[root@hostname ~]# ls

Install jpackage.repo from JPackage, change to the repos.d dir first

[root@hostname ~]# cd /etc/yum.repos.d/

now get the jpackage.repo file from http://www.jpackage.org

[root@hostname ~]# wget http://www.jpackage.org/jpackage.repo

If you have not yet downloaded the jdk-1_5_0_06-linux-i586.bin file (Linux self-extracting file), do so now. You need a browser because you need to Click on Accept License Agreement.

Change to the directory where you downloaded the file

[root@hostname ~]# cd download

Copy the jdk-1_5_0_06-linux-i586.bin to ~/rpmbuild/SOURCES/

[root@hostname ~]# cp jdk-1_5_0_06-linux-i586.bin ~/rpmbuild/SOURCES/

Download java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm from JPackage

[root@hostname ~]# wget http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm

Build a new java-1.5.0-sun-1.5.0.06-1jpp.i586.rpm

[root@hostname ~]# rpmbuild --rebuild java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm

Install the freshly built java packages. First change to the RPMS directory.

[root@hostname ~]# cd ~/rpmbuild/RPMS/i586/

Create yum-cmd:

[root@hostname ~]# (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo run) > yum-cmd

And install from this file

[root@hostname ~]# yum shell yum-cmd

When installation is complete you can remove the yum-cmd file:

[root@hostname ~]# rm yum-cmd

Now let’s check the Java version:

[root@hostname ~]# java -version

It should read something like this: java version “1.5.0_06” Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

That was step 1. Still here? let’s go to step 2 Step 2

Installing Apache Ant.

Dont bother trying to get apache ant via yum... Afterwards it won’t work.. So follow the detailed instructions on http://ant.apache.org/manual/install.html#installing or follow the short one below.

Download apache-ant-1.6.5-bin.tar.gz from http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.tar.gz

Change to where you want to put ant, we’re using /usr/local/

[root@hostname ~]# cd /usr/local/

untar the archive

[root@hostname ~]# tar -zxf ~/download/apache-ant-1.6.5-bin.tar.gz

rename the dir to ant

[root@hostname ~]# mv apache-ant-1.6.5 ant

Step 3. Setting the right Path Variables.

If you’ll be running Red5 as root (which you shouldn’t) you can add the paths to /root/.bash_profile otherwise you can add them to /etc/profile add these two lines:

PATH=$PATH:$HOME/bin:/usr/local/ant/bin
export PATH

OR you can do it in the shell right now:

[root@hostname ~]#  export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
[root@hostname ~]#  export ANT_HOME=/usr/local/ant/bin 

Step 4. Installing Red5.

move back to your download directory:

[root@hostname ~]# cd ~/download/

download Red5

[root@hostname ~]# wget http://dl.fancycode.com/red5/red5-0.6rc1.tar.gz

Move to the direcotry destination where you want to put it, I use /opt/ and unpack

[root@hostname ~]# cd /opt
[root@hostname ~]# tar zxf ~/downloads/red5-0.6rc1.tar.gz

change into the red5-0.6rc1 dir

[root@hostname ~]# cd red5-0.6rc1

and use ant to build and run Red5

[root@hostname ~]# ant server &

If I’m not mistaken you should be up and running.

Patrick Gutlich



Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
About - Site design by Aral Balkan, based on the original design by Nicolas Coevoet. OSFlash © 2005 Aral Balkan.
OSFlash, the OSFlash logo and mascot are trademarks of Ariaware Limited.

You are here: osflash » red5 » fc4 OSFlash footer graphic (graffiti).