I'm having a bit of trouble with getting RMS to work. I'm running Fedora9, SQL5, PHP5, Apache2, with Dolphin 6.1 with Free Ray on a dedicated server on my LAN.
I followed the instructions for the RMS installation, but when running ./ray.sh I get the following:
: command not found
: command not found
'/ray.sh: line 7: syntax error near unexpected token `do
'/ray.sh: line 7: `do
The Fedora9 install included Java 1.5 and 1.6 OpenJDKs, which I believe include the JRE. My experience with Java is limited, so I figured the problem was the path to the JRE in ray.sh. Anyways, I installed the JRE alone using the RPM from Sun.
When I do rpm -qi jre, I receive the following:
Name : jre Relocations: /usr/java
Version : 1.6.0_07 Vendor: Sun Microsystems, Inc.
Release : fcs Build Date: Tue 10 Jun 2008 05:35:45 PM ICT
Install Date: Mon 06 Oct 2008 02:25:58 PM ICT Build Host: jdk-lin-1586
Group : Development/Tools Source RPM: jre-1.6.0_07-fcs.src.rpm
Size : 47684765 License: Sun Microsystems Binary Code License (BCL)
Signature : (none)
Packager : Java Software <jre-comments@java.sun.com>
URL : http://java.sun.com/
Summary : Java(TM) Platform Standard Edition Runtime Environment
When entering java -showversion, I receive:
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)
which appears to info on the Fedora installed OpenJDK.
Regardless of the path I use for Java_Home= in ray.sh, the results for the command ./ray.sh are the same:
: command not found
: command not found
'/ray.sh: line 7: syntax error near unexpected token `do
'/ray.sh: line 7: `do
ray.sh looks like this (minus the path to Java_Home=)
#-- RMS 3.5.1
#!/bin/bash
JAVA_HOME=/
for JAVA in "$JAVA_HOME/bin/java" "/usr/bin/java" "/usr/local/bin/java"
do
if [ -x $JAVA ]
then
break
fi
done
if [ ! -x $JAVA ]
then
echo "Unable to locate java. Please set JAVA_HOME environment variable."
exit
fi
exec $JAVA -Djava.security.manager -Djava.security.policy=conf/red5.policy -cp red5.jar:conf:$CLASSPATH org.red5.server.Standalone
I'm not sure if I'm even pointing in the right direction by concentrating on the path to the jre. I've tried several different paths, and have had the same results. I suppose it is possible that I entered the correct path at some point, but the errors would still have been the same.
Any insight would definitely be appreciated. I haven't found any posts with the same problem. Most of them have been reference ports and software versions. I haven't seen this error documented in any other posts. Perhaps it's a path environment variable issue, but I've been running the command from the directory containing ray.sh and I'm not getting the error reference the Jav_Home environment variable.
Thanks,
Brian






















