^ I am sorry buddy I couldn't fix it. But it took a bit longer to reach the root cause.
The error you mentioned in your last post about "ant dist" is not the main problem. Not even the "ant prepare" command was successful as I checked it.
And the reason was your server's memory.
Java programs aren't able to run successfully even with a simple runtime.exec function to list a directory with only 2 files in it on the filesystem . I tried to specify the heap size but the system doesn't let Java avail enough heap size to run the programs successfully. It was just a test using a simple Java program, I needed to make sure. but with Red5 you would probably need to dedicate or preset the swap size to run it all the time as there is Zero swap size available on the system. Unfortunately it didn't let me allocate a bit of a memory to swap. I used "swapon" command for that.
May be a good Linux guy could help you with that. or you might want to check with Hosting provider..
The error during the Red5 build is as quoted following when running "ant prepare" which you would need to look forward from.
Did you see the error on second line of the output? that's the error you would need to fix.
Also, I guess you gave me another machine to set it up. So you might have some other error(s) on the machine you were trying to setup but the error below doesn't mean to be the same on any other machine.
root@pk [/usr/local/red5]# ant prepare
[property] java.io.IOException: Cannot run program “/bin/env”: java.io.IOException: error=12, Cannot allocate memory
[property] at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
[property] at java.lang.Runtime.exec(Runtime.java:610)
[property] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
[property] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
[property] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
[property] at org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:165)
[property] at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:646)
[property] at org.apache.tools.ant.taskdefs.Property.execute(Property.java:488)
[property] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[property] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[property] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[property] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[property] at java.lang.reflect.Method.invoke(Method.java:616)
[property] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[property] at org.apache.tools.ant.Task.perform(Task.java:348)
[property] at org.apache.tools.ant.Target.execute(Target.java:390)
[property] at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:179)
[property] at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
[property] at org.apache.tools.ant.Main.runBuild(Main.java:786)
[property] at org.apache.tools.ant.Main.startAnt(Main.java:218)
[property] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[property] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[property] Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
[property] at java.lang.UNIXProcess.(UNIXProcess.java:164)
[property] at java.lang.ProcessImpl.start(ProcessImpl.java:81)
[property] at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
[property] … 21 more
[mkdir] Created dir: /usr/local/red5/bin
[mkdir] Created dir: /usr/local/red5/dist
[mkdir] Created dir: /usr/local/red5/log
[mkdir] Created dir: /usr/local/red5/dist/log
[mkdir] Created dir: /usr/local/red5/cluster
[mkdir] Created dir: /usr/local/red5/cluster/origin
[mkdir] Created dir: /usr/local/red5/cluster/edge
[mkdir] Created dir: /usr/local/red5/bin/testcases/classes
[mkdir] Created dir: /usr/local/red5/bin/testcases/testreports
Total time: 1 second