2009-10-22 17:18:12 PDT
If you download the Linux release and replace the contents of server/cyc/run/bin/run-cyc.sh with the below, it runs on at least Snow Leopard:
#!/bin/bash
#
# $Id: run-cyc.sh 126951 2009-01-28 18:55:50Z tbrussea $
# Assumes that java 1.5 or higher (1.6 or higher preferably) is in your path
if [ ${PWD:(-4)} == "/bin" ]; then
# we are inside the bin directory ... moving one level up quietly
cd ..
else
if [ -d ${PWD}/lib ]; then
# this is the correct location, we are good
:
else
echo "I do not think that CYC is installed here."
exit -1
fi
fi
if [ `uname -s` = "Darwin" ]; then
CLASSPATH="lib/cyc.jar:lib/subl.jar:lib/junit.jar:resource:lib/ext:plugins"
else
CLASSPATH=
PATH_ELEMENTS="lib/cyc.jar lib/subl.jar lib/junit.jar resource lib/ext plugins"
for pathElement in ${PATH_ELEMENTS}; do
canonicalElement=`readlink ${pathElement}`
if test -z "${CLASSPATH}"; then
CLASSPATH=${canonicalElement}
else
CLASSPATH=${CLASSPATH}:${canonicalElement}
fi
done
fi
echo CLASSPATH $CLASSPATH
_JAVA_OPTIONS=
# Add the following line to the JVM options to allow remote debugging
# -agentlib:jdwp=transport=dt_socket,server=y,address=8888,suspend=n
BIT_FLAG=
if [ `uname -s` = "SunOS" ]; then
java -d64 -Xmx5000m -version > /dev/null 2>&1;
if [ $? -eq 0 ]; then
echo "Running Solaris with 64 bit Java ...."
BIT_FLAG=-d64
MIN_HEAP=5000m
MAX_HEAP=8000m
PERM_SIZE=256m
else # end 64-bit solaris
echo "Running Solaris with 32 bit Java ..."
MIN_HEAP=1400m
MAX_HEAP=1400m
PERM_SIZE=128m
fi
else
java -Xmx5000m -version > /dev/null 2>&1;
if [ 0 -eq $? ]; then
echo "Running 64 bit Java ...."
MIN_HEAP=5000m
MAX_HEAP=8000m
PERM_SIZE=256m
else
echo "Running 32 bit Java ..."
MIN_HEAP=1400m
MAX_HEAP=1400m
PERM_SIZE=128m
fi
fi
java $BIT_FLAG -server -Xms$MIN_HEAP -Xmx$MAX_HEAP -XX:MaxPermSize=$PERM_SIZE \
-XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseFastAccessorMethods \
-XX:-UseSpinning -XX:PreBlockSpin=10 -XX:+UseParallelGC \
-cp $CLASSPATH com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain \
-f "(progn (load \"init/jrtl-release-init.lisp\")))" "$@"