LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-18-2010, 11:07 PM   #1
carlmx
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Red 5 installation failed from the very beggining


Hi to all of the members of this helpful community.
I have lot of problems installing red5 video server, on my VPS.
First things first, here is the specs of my VPS:
OS: CENTOS 5.4 i686 virtuozzo on server
Administration: cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9
Mysql: 5.0.89-community
PHP: 5.2.10
Apache 2.2.11

Saying that, I will try to explain my problem as detailed as possible:
I try to install red5 video server, following the tutorials and guides to do that, but there are some prerequisites to fulfill before installing the program:
Prerequisite No.1.: Having the latest version of Apache ANT.
Prerequisite No.2: Having the latest Java devel version.

The server already got the Apache ANT 1.6, but red5 asks for 1.8
The server already got java 1.5 but red5 asks for 1.6

So, I try to update to ANT 1.8 and Java 1.6, but refuses to update, so I made a clean installation of both, doing this:

This guide is from http://hosting-marketers.com/news/20...on-centos-5-4/

JAVA:
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

Then I install Apache ANT doing this:
# cd /usr/src
# wget http://opensource.become.com/apache/...8.0-bin.tar.gz
# tar zxvf apache-ant-1.8.0-bin.tar.gz
# mv apache-ant-1.8.0 /usr/local/ant

Then I export the variables, according to the guide:
# 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

Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.

# 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

The strange thing is that after that, when I connect via SHELL, to the VPS, I get an error message, 5 times:
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found
-bash: ‘export: command not found

Then, when I execute the command: ant -version to find out which version is running, I get more errors:
root@server [~]# ant -version
/usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
Unable to locate tools.jar. Expected to find it in /usr/java/jre1.6.0_13/lib/tools.jar
Apache Ant version 1.6.5 compiled on January 6 2007
As you can see, I installed the 1.8 version, but I have the 1.6.5.

Also, the VPS is not resolving the domains properly, prior to this, the domains were fine, but after that, I need to do a gracefull reboot, and then restart the named service.

So, here are the questions:
1.- How can I undo all the things I did, I mean, is it a way to uninstall the APACHE ANT 1.6.5 and then the 1.8 and Java 1.6, and then start from the beginning?
2.- After uninstalling these 3 apps, I need to reinstall it properly, and make red5 work on the server, so, how can I do it safely?

A mistake I did, was to not to backup the server prior to make the changes, and is a production VPS on a shared server with the vpsnext.com hosting provider.

I speak with the technical support, and they are not be able to help me, because is an unmanaged server.

One more strange thing is that, I already install red5, with ANT and JAVA in another server, with the same specs of this VPS, from another hosting provider, and I had no problems at all.

Hope you can help me to revert all this, because, I'm not a newbie in this, but I have limited knowledge on the things I can do in a Linux environment.

Thanks
 
Old 03-19-2010, 06:24 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,875

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
# 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
You've used wrong quotes in the above commands. Should have use single or double quotes and not those.
You can edit /etc/bashrc and remove them.
Then run
Code:
source /etc/bashrc
or restart the server.

Regards
 
Old 03-19-2010, 07:23 PM   #3
carlmx
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi bathory, I already change that quotes mistake.
I also uninstall the previous version of APACHE ANT, and install the new one:
Quote:
root@server [/]# ant -version
Apache Ant version 1.8.0 compiled on February 1 2010
And also get the right java version:
Quote:
root@server [/]# java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)
And also, installed the red5 video server.
Now, I have another problem with ANT, some dependencies are missing:
Quote:
root@server [/]# ant -diagnostics
------- Ant diagnostics report -------
Apache Ant version 1.8.0 compiled on February 1 2010

-------------------------------------------
Implementation Version
-------------------------------------------
core tasks : 1.8.0 in file:/usr/local/ant/apache-ant-1.8.0/lib/ant.jar
optional tasks : 1.8.0 in file:/usr/local/ant/apache-ant-1.8.0/lib/ant-nodeps.jar

-------------------------------------------
ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.8.0 compiled on February 1 2010
ant.java.version: 1.6
ant.core.lib: /usr/local/ant/apache-ant-1.8.0/lib/ant.jar
ant.home: /usr/local/ant/apache-ant-1.8.0

-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/local/ant/apache-ant-1.8.0
xercesImpl.jar (1223877 bytes)
ant-apache-regexp.jar (3761 bytes)
ant-apache-oro.jar (39646 bytes)
ant-apache-xalan2.jar (2293 bytes)
ant-apache-bsf.jar (3931 bytes)
ant-stylebook.jar (2333 bytes)
ant-junit.jar (101222 bytes)
ant-testutil.jar (15121 bytes)
ant-trax.jar (8371 bytes)
ant-netrexx.jar (9948 bytes)
ant-jai.jar (22249 bytes)
ant-jsch.jar (40120 bytes)
ant-commons-logging.jar (3913 bytes)
ant-nodeps.jar (402003 bytes)
ant-apache-resolver.jar (4074 bytes)
ant-launcher.jar (12277 bytes)
xml-apis.jar (194354 bytes)
ant-jmf.jar (6720 bytes)
ant-jdepend.jar (8265 bytes)
ant-commons-net.jar (85161 bytes)
ant-antlr.jar (5747 bytes)
ant-apache-bcel.jar (8749 bytes)
ant-swing.jar (7537 bytes)
ant-javamail.jar (7855 bytes)
ant-apache-log4j.jar (3047 bytes)

-------------------------------------------
USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /root
No such directory.

-------------------------------------------
Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.Logger
wlrun : Not Available (the implementation class is not present)
scp : Missing dependency com.jcraft.jsch.Logger
stlist : Not Available (the implementation class is not present)
sshsession : Missing dependency com.jcraft.jsch.Logger
starteam : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
jdepend : Missing dependency jdepend.xmlui.JDepend
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use it

-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: file:/usr/local/ant/apache-ant-1.8.0/lib/xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: file:/usr/local/ant/apache-ant-1.8.0/lib/xercesImpl.jar

-------------------------------------------
XSLT Processor information
-------------------------------------------
I already build red5 with APACHE ANT:
Quote:
root@server [/usr/local/red5]# ant prepare
Buildfile: /usr/local/red5/build.xml

prepare:

BUILD SUCCESSFUL
Total time: 1 second
and then:
Quote:
root@server [/usr/local/red5]# ant dist
Buildfile: /usr/local/red5/build.xml

-library.check:
[echo] Java: java.home is /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre and the target version is 1.6
[echo] Ant: ant.home is /usr/local/ant/apache-ant-1.8.0 and the target version is Apache Ant version 1.8.0 compiled on February 1 2010

-java6.check:
[echo] Using Java 1.6

prepare:

compile:
[echo] javac version: 1.6
[echo] Not using the Eclipse IDE
[echo] Compiler adapter name: modern

compile-core:

retrieve:
[echo] Ivy conf name: java6
[ivy:resolve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /usr/local/red5/ivysettings.xml
[ivy:resolve] :: resolving dependencies :: red5#server;working@server.gpapplications.net
[ivy:resolve] confs: [java6]
[ivy:resolve] found javax#javaee-api;5.1.1 in googlecode
[ivy:resolve] found tomcat#jasper;6.0.24 in googlecode
[ivy:resolve] found tomcat#jasper-jdt;6.0.24 in googlecode
[ivy:resolve] found tomcat#jasper-el;6.0.24 in googlecode
[ivy:resolve] found spring#spring-asm;3.0.0 in googlecode
[ivy:resolve] found spring#spring-beans;3.0.0 in googlecode
[ivy:resolve] found spring#spring-context;3.0.0 in googlecode
[ivy:resolve] found spring#spring-core;3.0.0 in googlecode
[ivy:resolve] found spring#spring-web;3.0.0 in googlecode
[ivy:resolve] found spring#spring-expression;3.0.0 in googlecode
[ivy:resolve] found tomcat#catalina;6.0.24 in googlecode
[ivy:resolve] found tomcat#tomcat-coyote;6.0.24 in googlecode
[ivy:resolve] found commons#commons-modeler;2.0.1 in googlecode
[ivy:resolve] found red5#slf4j-api;1.5.10 in googlecode
[ivy:resolve] found red5#jcl-over-slf4j;1.5.10 in googlecode
[ivy:resolve] found red5#log4j-over-slf4j;1.5.10 in googlecode
[ivy:resolve] found red5#jul-to-slf4j;1.5.10 in googlecode
[ivy:resolve] found red5#logback-core;0.9.18 in googlecode
[ivy:resolve] found red5#logback-classic;0.9.18 in googlecode
[ivy:resolve] found red5#tomcat-juli-slf4j;1.5.0 in googlecode
[ivy:resolve] found commons#commons-beanutils;1.8.0 in googlecode
[ivy:resolve] found commons#commons-codec;1.4 in googlecode
[ivy:resolve] found commons#commons-collections;3.2.1 in googlecode
[ivy:resolve] found commons#commons-httpclient;3.1 in googlecode
[ivy:resolve] found commons#commons-lang;2.4 in googlecode
[ivy:resolve] found commons#commons-pool;1.4 in googlecode
[ivy:resolve] found red5#quartz;1.6.5 in googlecode
[ivy:resolve] found red5#ehcache;1.6.2 in googlecode
[ivy:resolve] found red5#xercesImpl;2.9.1 in googlecode
[ivy:resolve] found red5#xmlrpc;2.0.1 in googlecode
[ivy:resolve] found mina#mina-core;2.0.0-RC1 in googlecode
[ivy:resolve] found mina#mina-integration-beans;2.0.0-RC1 in googlecode
[ivy:resolve] found mina#mina-integration-jmx;2.0.0-RC1 in googlecode
[ivy:resolve] found asm#asm;3.1 in googlecode
[ivy:resolve] found asm#asm-commons;3.1 in googlecode
[ivy:resolve] found antlr#antlr;3.1.3 in googlecode
[ivy:resolve] found red5#groovy-all;1.5.7 in googlecode
[ivy:resolve] found red5#jython;2.5 in googlecode
[ivy:resolve] found spring#spring-context-support;3.0.0 in googlecode
[ivy:resolve] found red5#jaudiotagger;1.0.8 in googlecode
[ivy:resolve] found red5#jruby-complete;1.1.6 in googlecode
[ivy:resolve] found red5#jruby-engine;1.1.6 in googlecode
[ivy:resolve] found red5#bcprov-jdk16;145 in googlecode
[ivy:resolve] :: resolution report :: resolve 2175ms :: artifacts dl 27ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| java6 | 43 | 0 | 0 | 0 || 43 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: red5#server
[ivy:retrieve] confs: [java6]
[ivy:retrieve] 0 artifacts copied, 43 already retrieved (0kB/26ms)
[javac] /usr/local/red5/build.xml:238: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
compile-core-compatibility:

compile-demos:
[echo] Webapps dir: webapps
[echo] Webapps build dir: dist/webapps
[copy] Warning: /flash/trunk/deploy does not exist.

prepare:

compile-script:
[javac] /usr/local/red5/build.xml:338: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeata
ble builds
[echo] Scripting compatibility is available.

jar-determine-classpath:

jar:

dist:

BUILD SUCCESSFUL
Total time: 12 seconds
But after that, when I try to start red5, with:
Quote:
./red5.sh
And tested on port 5080, it does not appear anything at all.

So, are you well versed on the red5 issues, and help me out, pls, or anyone else who knows this red5 video server implementation, all the help is very welcome.

Thanks
 
Old 03-20-2010, 04:22 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,875

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

I'm not familiar with Red5m but after reading the howto you've followed, it looks like you missed the step to copy the configuration directory:
Quote:
...
you will see lots and lots of lines, but you should get at last

BUILD SUCCESSFUL

that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.

# cp -r dist/conf .
# ./red5.sh
Regards
 
Old 03-20-2010, 07:27 PM   #5
carlmx
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi again bathory, thanks for your interest in helping me.
I already did what I missed from the guide, but with an error message:
Quote:
root@server [/usr/local/red5/dist/conf]# cp -r dist/conf .
cp: cannot stat `dist/conf': No such file or directory
root@server [/usr/local/red5/dist/conf]#
What is strange to me, is that according to the guide, it says:
Quote:
BUILD SUCCESSFUL

that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.

# cp -r dist/conf .
# ./red5.sh
Note the red note I indicated it says from dist/, but it does not says to where. (destination file or folder?)
I posted a comment on the author's guide site, but still no answer.

Thanks again for you kindly help
 
Old 03-23-2010, 10:12 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,875

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi carlmx,

According to the howto you've followed:
Quote:
cp -r dist/conf .
means to copy the subdir conf in the currect directory (note the last dot). I guess this is done by the author so he can run ./red5.sh just for testing purposes.
You can try to run:
Code:
sh /usr/local/red5/dist/red5.sh &
and see if it works.

Regards
 
Old 07-03-2010, 02:01 AM   #7
pranky
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 0
Hi,

Find best and easy way to install red5.

http://pankajdangi.com/2010/01/steps...red5-on-linux/

Thanks
Pankaj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beggining Python - Book Worthiness flebber Programming 6 09-25-2006 05:00 AM
Beggining with Linux jhonny C Linux - Newbie 5 07-27-2005 01:27 AM
how to 'starx' another window manager in the beggining shell? priest_judas Linux - Newbie 5 12-17-2003 09:05 AM
Network beggining Anmar Linux - Networking 96 09-11-2003 03:48 PM


All times are GMT -5. The time now is 09:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration