[to be revised]
Note: it would make more sense initially for students just to run the programs in ~ccongdon/Public/Swarm... there's no reason for them to make their own copies of the sources unless/until they are going to start writing Swarm programs. But they will still need to set their environment variables. Here's what should likely happen initially (for example):
cd ~ccongdon/Public/Swarm setpaths cd mousetrap mousetrapI'll leave the rest for now, since I may have forgotten something, and it may come in handy down the road.
Other demos currently installed are:
heatbugs hello-world (three different versions) market
To run Swarm, there are a couple of things you need to do:
Swarm opens many additional windows, so you will not be able to run it over a telnet session.
Warning: Every step of this process will tax your understanding of Unix.
This does not contain "Swarm itself", which is really just a bunch of
libraries and utilities for making these kinds of programs.
This might be a good time for you to
read more about the Swarm project
To have a peek at these, type
You need to set a couple more variables so that your Swarm projects can find
the libraries, etc., that they need.
There are two ways to do this:
Note: that's all one long line. Make sure it's still one line
when you're done.
Get your own copy of the starter files
cp ~ccongdon/Public/Swarm.tar.gz ~/
gunzip Swarm.tar.gz
tar -xf Swarm.tar
rm Swarm.tar
Set your environment variables
Environment variables are how Unix keeps track of certain things that are true
when you (in particular) are logged on. For example, what your home directory
is, where software you usually run is located on mainline, and what terminal
you're logged in from right now.
env
at the Unix prompt right now. Yow.
If any of that didn't seem to work right, stop and get help. You won't be able
to run Swarm unless your environment variables are set correctly.
setpaths
This runs a miniprogram (called a shell script) that should set the
variables for you. You'll have to remember to do this every time you want
to run Swarm.
source ~/.cshrc
~/Swarm/setpaths
and force Unix to re-read your .cshrc file:
source ~/.cshrc
Run Swarm
Or rather, run one of the Swarm demo applications. Some of these are not yet
compiled, so they involve an extra step.
Note to people who are familiar with Unix and make: you have to use gmake, and
not make. (gmake is the Gnu version of make, and is more powerful.)
cd ~/Swarm/heatbugs
gmake heatbugs
heatbugs
Maintained by: