How to install RED5 on Centos/ RHEL

REQUIRMENTS:

You will likely need the amalgamation from [ http://www.sqlite.org/download.html ]
You may also need the APR and APR-util if you do not have Apache installed [ http://apr.apache.org/download.cgi ] ignore rm errors during configure
You need to install neon

yum install neon neon-devel 

Install SVN

http://subversion.apache.org/download/

INSTALLATION PROCEDURE:

    # yum install libtool 
    # ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/home/cpeasyapache/src/httpd-2.2.16/srclib/apr-util/
    # make
    # make install

Install java

    # yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel

Install Ant

    # cd /usr/local/src

Download the ant binary from [ http://ant.apache.org/bindownload.cgi ]

    # tar jxvf apache-ant-1.8.2-bin.tar.bz2
    # mv apache-ant-1.8.2 /usr/local/ant
    # export ANT_HOME=/usr/local/ant

Add symlink to ANT binary

    # ln -s /usr/local/ant/bin/ant /usr/bin/ant

get ivy

    # svn co https://svn.apache.org/repos/asf/ant/ivy/core/trunk ivy
    # cd ivy
    # ant jar
    # cp build/artifact/jars/ivy.jar /usr/local/ant/lib/

Download / Install Red5

    # svn co http://red5.googlecode.com/svn/java/server/tags/0_9_1 red5-0.9.1.svn
    # cd red5-0.9.1.svn
    # ant clean dist
    # cp -prvf dist/ /usr/local/red5

Add red5 to chkconfig so it runs on startup

    # chkconfig --add red5

You can download init script from here.