LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-20-2010, 04:15 AM   #1
suj
Member
 
Registered: Dec 2009
Posts: 33

Rep: Reputation: 1
red5 installation problem


I tried to configure the red5 in a vps. downloaded and install the latest jdk and ant
yum install subversion
svn co http://red5.googlecode.com/svn/java/server/trunk red5-trunk

and the ant prepare build was successful. but when i try ant dist i am getting this error.

BUILD FAILED
/root/red5-trunk/build.xml:230: The following error occurred while executing this line:
/root/red5-trunk/build.xml:251: Error running /usr/java/jdk1.6.0_21/bin/javac compiler

and also at the top there was a message saying

Buildfile: /root/red5-trunk/build.xml
[property] java.io.IOException: Cannot run program "/bin/env": java.io.IOException: error=12, Cannot allocate memory

this is my free -m output
total used free shared buffers cached
Mem: 373 53 319 0 0 0
-/+ buffers/cache: 53 319
Swap: 0 0 0



how to fix the error?? is this related to any java version conflict?? there was a default java openjdk was in my system[/usr/lib],but i set the java home to /usr/java/jdk-version..

thanks in advance
 
Old 08-21-2010, 02:15 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,767

Rep: Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613
Quote:
Originally Posted by suj View Post
I tried to configure the red5 in a vps. downloaded and install the latest jdk and ant
yum install subversion
svn co http://red5.googlecode.com/svn/java/server/trunk red5-trunk

and the ant prepare build was successful. but when i try ant dist i am getting this error.

BUILD FAILED
/root/red5-trunk/build.xml:230: The following error occurred while executing this line:
/root/red5-trunk/build.xml:251: Error running /usr/java/jdk1.6.0_21/bin/javac compiler

and also at the top there was a message saying

Buildfile: /root/red5-trunk/build.xml
[property] java.io.IOException: Cannot run program "/bin/env": java.io.IOException: error=12, Cannot allocate memory

this is my free -m output
total used free shared buffers cached
Mem: 373 53 319 0 0 0
-/+ buffers/cache: 53 319
Swap: 0 0 0



how to fix the error?? is this related to any java version conflict?? there was a default java openjdk was in my system[/usr/lib],but i set the java home to /usr/java/jdk-version..

thanks in advance
See this thread:
http://www.linuxquestions.org/questi...os-5-a-717592/

Also, you say you purposely moved the Java from the default, to something else, and you're surprised it's not working??
 
Old 08-21-2010, 08:59 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
the svn daily build -- very unstable
and you but in in a folder called "red5-trunk"
Quote:
/root/red5-trunk
AND you are building it in the root home folder ?? -- not good
i take it you are logged in to the gui ( gnome ) as root ? also not good

you DO know that the java that ships in the NOT FREE rhel 5.5 is very stable ?

next ?
Did you BUY RHEL ?? -- It is NOT FREE

to fix :
step #1
pay for red hat enterprise linux ( RHEL 5.5 ) then
use the paid for support .

or install the FREE CentOS 5.5
 
Old 09-19-2010, 01:05 PM   #4
bellskar
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
I am having the same problem, facing the same error but instead while running "ant prepare"
Code:
[property] java.io.IOException: Cannot run program "/bin/env": java.io.IOException: error=12, Cannot allocate memory
I am sure the OP would have missed this result to see because after running "ant prepare" the console prints last jobs of "Making directories" successfully and prints a message [BUILD SUCCESSFUL], which is actually not a good one to track down the correct problem. If you scroll up the console, you would see the list of errors/exceptions and the very first error is the same as I quoted above.

I would request you to follow an another thread of mine for detail of the error and some findings. You can click the [>] icon next to the quote title below.
Quote:
Originally Posted by bellskar View Post
Red5 installation issues on a WHM VPS "virtuozzo"
 
Old 09-19-2010, 01:37 PM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,767

Rep: Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613
Quote:
Originally Posted by bellskar View Post
I am having the same problem, facing the same error but instead while running "ant prepare"
Code:
[property] java.io.IOException: Cannot run program "/bin/env": java.io.IOException: error=12, Cannot allocate memory
I am sure the OP would have missed this result to see because after running "ant prepare" the console prints last jobs of "Making directories" successfully and prints a message [BUILD SUCCESSFUL], which is actually not a good one to track down the correct problem. If you scroll up the console, you would see the list of errors/exceptions and the very first error is the same as I quoted above.

I would request you to follow an another thread of mine for detail of the error and some findings. You can click the [>] icon next to the quote title below.
And per LQ rules, we would request you don't post the same question in multiple locations, re-open old threads, and hijack someone elses thread with your question.
 
Old 09-19-2010, 01:50 PM   #6
bellskar
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
^ Please accept my apology, if it was really like that. But I didn't mean to do any of the acts which it could be looked like. I just tried to search the issue first as normally it's used to be the rule that don't post multiple threads and I found this topic unsolved, and I just had have the same problem but with some other aspects as well, which lead me to post a new thread other wise I was going to post the whole post in this thread. I just redirected to the other thread with the same but extend issue detail..

I am really sorry if I did it wrong way... But I sincerely tried not to break any rule... I again wrote a long text in my clarification but I didn't try any thing to disturb the forums.. Please consider my apologies...

Thank you...
 
  


Reply

Tags
installation, redhat


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
Start red5 server via "./red5.sh" ceashton Linux - Software 5 08-08-2010 05:16 AM
Red5 connection issue ozysites Linux - Software 2 04-30-2010 11:56 PM
red5 streaming server installation on debian squeeze failed. tkmsr Linux - Software 0 04-28-2010 06:26 AM
Red5 RAH104 Linux - Server 2 07-10-2008 06:49 AM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 02:57 PM


All times are GMT -5. The time now is 07:05 AM.

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