LinuxQuestions.org
Help answer threads with 0 replies.
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 11-21-2007, 06:17 PM   #1
ceashton
Member
 
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Rep: Reputation: 15
Start red5 server via "./red5.sh"


I'm trying to get a red5 server running, and although I can test the server, I am unable to start it as a proper service as per the provided instructions. This is what I have been doing so far.

I am using Slackware 12.0, so I downloaded the tarball for all other systems (red5-0.6.3) from http://osflash.org/red5/063final. I followed the instructions contained within the tarball download. I installed the latest version of Apache Ant 1.6.5, and JDK was already installed.

Code:
chris@dinosaur:red5-0.6.3 $ ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
Code:
chris@dinosaur:red5-0.6.3 $ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
Code:
chris@dinosaur:red5-0.6.3 $ echo $JAVA_HOME
/usr/lib/java
Code:
chris@dinosaur:red5-0.6.3 $ ls -ld /usr/lib/java
lrwxrwxrwx 1 root root 11 2007-11-21 18:32 /usr/lib/java -> jdk1.6.0_02
Code:
chris@dinosaur:red5-0.6.3 $ echo $JAVA_VERSION
1.6

I compile and build the server with:

Code:
chris@dinosaur:red5-0.6.3 $ ant server
and after spewing out a lot of message but no errors, about 1 min later I test the server by going to the url http://my_server:5080/, and it seems to work.

This is fine, but my understanding is that I should be able to run ./red5.sh & and the server should start, and I should be able to use red5.sh in some rc script to start red5 as a service. However when I issue the command ./red5.sh, I get the following error:

Code:
chris@dinosaur:red5-0.6.3 $ ./red5.sh 
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/server/Standalone
Any help would be verymuch appreciated.

Kind regards,

Chris
 
Old 11-21-2007, 06:51 PM   #2
ceashton
Member
 
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Original Poster
Rep: Reputation: 15
*** UPDATE ***

I noticed I was using an old version of Apache-ant, so I updated:

Code:
chris@dinosaur:red5-0.6.3 $ ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
but the problem still persists.

Regards,

Chris
 
Old 11-22-2007, 08:06 AM   #3
ceashton
Member
 
Registered: Nov 2006
Distribution: Slackware 12.2
Posts: 36

Original Poster
Rep: Reputation: 15
The problem is now resolved -yipee!

First of all I noticed there was a more up-to-date version of Apache-ANT, so I updated to 1.7.0. However, I was still unable to run ./red5.sh to start the server.

I'd read somewhere that running ant rather than ant server before running ./red5 worked for some people. This didn't work for me with the old version of ant, but did for this version.

I'm off to do some ant and red5 reading, as clearly I'm missing something.

Chris
 
Old 12-30-2007, 11:01 PM   #4
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
ceashton,I'm playing around with red5 now,too.

Although I don't seem to find a direct solution to your problem,I created a shell script which changes to the red5 directory and execute red5.sh.It works for me.
 
Old 07-03-2010, 02:02 AM   #5
pranky
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 0
Red5 on linux, centos, redhat

Hi,

Easiest way to install.

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


Thanks
Pankaj
 
Old 08-08-2010, 05:16 AM   #6
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Check these also
for CentOS


and Ubuntu

Red5 init script for CentOS
and this one is Red5 start init script for Ubuntu.

Last edited by tkmsr; 08-08-2010 at 05:18 AM.
 
  


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
Installing Red5 howto? Soul's Raider Linux - Enterprise 15 12-19-2010 07:09 AM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 03:41 PM
red5 (flash server) build memory issue kurupt Linux - Server 1 09-25-2007 10:44 PM
X Server broken. start w/ "INIT: ld "x" respawning too fast: disabled for 5 minutes&q tektone Linux - Hardware 5 07-25-2007 07:18 PM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration