Installing SISC Scheme



SISC does not yet have an apt-get installable package available. (That I know of, anyway) The easiest way to get the latest version is to first download lynx, a text-based browser we can run on the server:

apt-get -y install lynx
Now we can browse to the SISC Scheme website directly on the server:

lynx sisc.sourceforge.net

From here you can download the latest sisc tar file- Hit enter on the ".tar.gz" file, work through the menus and choose "save to disk", then q to quit lynx.

From the root home directory, type the following to unpack the sisc files (you should be in the root home directory already)

gzip -d sisc-1.9.5.tar.gz
tar -xvvf sisc-1.9.5.tar



Now we need to link everything together- First, you'll want to use emacs add the following lines to the bottom of your /etc/profile file (so that Java can find the sisc libraries when we compile Java code, plus a define for WEBDIR, which makes it easier to get to our server files)

export CLASSPATH=.:/usr/lib/j2se/1.4/lib:/usr/share/tomcat4/common/lib:/usr/share/tomcat4/common/lib/servlet.jar:/root/sisc/sisc.jar:/root/sisc/sisc-lib.jar:/root/sisc/sisc-opt.jar:.
export JAVA_COMPILER=javacomp
export JAVA_HOME=/usr/lib/j2se/1.4
export PATH=$PATH:/usr/lib/j2se/1.4/bin
export WEBDIR=/var/lib/tomcat4/webapps/ROOT/WEB-INF/
At this point, log out of the server and back in again to load these new exports. OK, now in order for tomcat to see the java code from the SISC libraries, we'll need to copy the SISC jar files into the library directory for our web application:

mkdir $WEBDIR/lib
cp /root/sisc/*.jar $WEBDIR/lib/

Finally, we need to create the directory where our code will reside:

mkdir $WEBDIR/classes

Ok everybody- Now, finally, WE ACTUALLY GET TO WRITE SOME CODE!!!


<< PREVIOUS                 NEXT >>