Tag Archives: Processing Dependency

How to install red5 properly with TROUBLESHOOTING

Red5 Installation In centos 5.6 32/64bit

INSTALL JAVA

yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

INSTALL ANT

cd /usr/src
wget http://apache.mirrors.pair.com/ant/binaries/apache-ant-1.9.0-bin.tar.bz2
tar jxvf apache-ant-1.9.0-bin.tar.bz2
mv apache-ant-1.9.0 /usr/local/ant

 

EXPORT VARIABLES FOR ANT AND JAVA

export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$PATH:/usr/local/ant/bin
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

echo 'export ANT_HOME=/usr/local/ant' >> /etc/bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java' >> /etc/bashrc
echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/bashrc
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' >> /etc/bashrc

INSTALL SVN

/usr/bin/yum install subversion

yum install perl-URI [if needed. unless avoid this option]

Quote:

Common problem when you will try to install this

root@server [/usr/local/src]# yum install subversion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.nluug.nl
 * extras: ftp.nluug.nl
 * updates: ftp.nluug.nl
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package subversion.i386 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Processing Dependency: neon >= 0.25.5-6.el5 for package: subversion
--> Processing Dependency: libneon.so.25 for package: subversion
--> Processing Dependency: libapr-1.so.0 for package: subversion
--> Processing Dependency: libaprutil-1.so.0 for package: subversion
---> Package subversion.x86_64 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion
--> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion
--> Running transaction check
---> Package apr.i386 0:1.2.7-11.el5_5.3 set to be updated
---> Package apr.x86_64 0:1.2.7-11.el5_5.3 set to be updated
---> Package apr-util.i386 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: libpq.so.4 for package: apr-util
---> Package apr-util.x86_64 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: libpq.so.4()(64bit) for package: apr-util
---> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated
---> Package neon.x86_64 0:0.25.5-10.el5_4.1 set to be updated
---> Package subversion.i386 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
---> Package subversion.x86_64 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Running transaction check
---> Package postgresql-libs.i386 0:8.1.23-1.el5_6.1 set to be updated
---> Package postgresql-libs.x86_64 0:8.1.23-1.el5_6.1 set to be updated
---> Package subversion.i386 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
---> Package subversion.x86_64 0:1.6.11-7.el5_6.3 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Finished Dependency Resolution
subversion-1.6.11-7.el5_6.3.x86_64 from updates has depsolving problems
  --> Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.6.11-7.el5_6.3.x86_64 (updates)
subversion-1.6.11-7.el5_6.3.i386 from updates has depsolving problems
  --> Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.6.11-7.el5_6.3.i386 (updates)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.6.11-7.el5_6.3.i386 (updates)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.6.11-7.el5_6.3.x86_64 (updates)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package

then you could temporarily remove perl from the /etc/yum.conf exclude line, install subversion, then add perl back to the /etc/yum.conf exclude line after you’ve gotten subversion installed.

INSTALL RED5

cd /usr/src

svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5     
Version 0.8.0 or
svn co http://red5.googlecode.com/svn/java/server/tags/0_9_1/ red5
Version 0.9.1 or
svn co http://red5.googlecode.com/svn/java/server/tags/1_0/ red5
Version 1.0
mv red5 /usr/local/ cd /usr/local/red5 ant prepare ant dist cp -r dist/conf .

START RED5

./red5.sh

in that time your installation can get hanged wait 30-40min after that press ctrl+c

then
CREATE INIT FILE

cd /etc/init.d/
wget http://blog.host4offshore.com/red5.txt
mv red5.txt red5
chmod +x red5
service red5 start

then visit your RED5 ADMIN

http://YOUR_SERVER_IP:5080/installer/ (and install admin)
http://YOUR_SERVER_IP:5080/admin/register.html (add user/pass)

Common problem
if you face

HTTP Status 404 - /admin/register.html

type Status report

message /admin/register.html

description The requested resource (/admin/register.html) is not available.

Apache Tomcat/6.0.26

if you faced this types of problem then follow this steps

Get the plugins:

cd /root/tmp
mkdir /usr/local/red5/plugins
wget http://red5.googlecode.com/files/AdminPlugin-1.0.zip
unzip -d /usr/local/red5/plugins AdminPlugin-1.0.zip
Get the Red5 admin register page:

mkdir /usr/local/red5/webapps/admin
wget http://red5.googlecode.com/files/admin.jsp
mv admin.jsp /usr/local/red5/webapps/admin

then again restart Red5 (/etc/init.d/red5 restart)/(service red5 restart)

this all step working tested by me in centos 64bit os (cpanel)