Setting up Red5, version 0.4.1, on Fedora Core 4.
Setting up Red5, version 0.4.1, on Fedora Core 4.
Installing Red5, version 0.4.1 takes 4 steps
Installing the Java 1.5 JDK
Installing Apache Ant.
Setting the wright Path Variables
Installing Red 5
First of all, you will need to be logged in as root. Were 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-rpmdevtoolsWhen installation is complete (and succeded) we build the rpmbuild tree
[root@hostname ~]# fedora-buildrpmtreeCheck to see if you have an rpmbuild directory:
[root@hostname ~]# lsInstall 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.repoIf 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 downloadCopy 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.rpmBuild 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-cmdAnd install from this file
[root@hostname ~]# yum shell yum-cmdWhen 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 -versionIt 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.2-bin.tar.gz from http://archive.apache.org/dist/ant/bina ··· n.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.2-bin.tar.gzrename the dir to ant
[root@hostname ~]# mv apache-ant-1.6.2 antStep 3. Setting the wright 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.4.1.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.4.1.tar.gzchange into the red5-0.4.1 dir
[root@hostname ~]# cd red5-0.4.1and use ant to build and run Red5
[root@hostname ~]# ant server &If I’m not mistaken you should be up and running.
Regards Patrick Gutlich