Installing SOD
Download the tar.gz or zip of SOD, and unpack it. This will result in a directory structure like the following:
-
sod-2.1.1
- bin - scripts for running SOD and the SOD editor
- docs - documentation
- recipes - sample recipes
- lib - SOD's libraries
Installing Java
SOD uses Java 1.4 or later. You can find out what version of Java you have on your system by running 'java -version' at the command line. If your version is less than 1.4, go to Java's website for a more recent version.
Setting SOD_HOME
To finish installing SOD the SOD_HOME environmental variable needs to be set and SOD's bin directory needs to be added to the PATH. SOD's scripts expect SOD_HOME to be set so they can find SOD's libraries.
Unix-like systems
We'll assume you know how to set an enviromental variable. Add one named SOD_HOME pointing to the sod-2.1.1 directory that came out of the SOD distribution. Then add ${SOD_HOME}/bin to your PATH variable.
Windows
In Windows 2000 and later, environmental variables are set in Control Panel -> System -> Advanced -> Environment Variables
.
Click New
under User variables
and type SOD_HOME
into the Variable name
field and the directory
you unzipped SOD into in the Variable value
field.
If you unzipped it directly onto your C drive, the Variable value
would be C:\sod-2.1.1
.
Next, add SOD_HOME/bin
to your system's path. Open Control Panel -> System -> Advanced -> Environment Variables
as when you entered SOD_HOME
. If an entry with name PATH
exists, append ;%SOD_HOME%\bin
to its value.
Otherwise, create a new variable PATH
and set it to %SOD_HOME%\bin
.