The PSciCo Project: Internal Page
- Other Sites
Setting up PSciCo on Windows NT
To get pscico running on Windows NT, you need to install the
- the SML/NJ ML system on your machine
- the cvs source control system on your machine
- a pscico working directory on your machine
Installing SML/NJ on NT
To install SML/NJ on NT, you need to get the binaries, and
libraries, install the binaries and libraries, set up the SML/NJ
directory structure and set up the environment.
- Get the binaries for the latest SML/NJ.
- Follow the instructions at Bell
Labs. There is a new self installing software package for
SML/NJ, but I have not tried installing it.
NOTE: When you set the environment variable
SMLNJ_HOME, be sure to enclose the path in double quotes.
Otherwise, SML/NJ will misinterpret your path.
If you want to include SML/NJ library structures conveniently,
you need to add some environment variables, folders, and files to
your system. The following modifications allow you to use the
same .cm files on both UNIX and NT. In the following
instructions, I assume that your SML/NJ root folder has the path
- Set CM_PATH to C:/Program
- Create a directory named 'lib'.
- Create a file called 'smlnj-lib.cm' with
the following line:
- You can add more CM Alias files to the lib directory to
support other SML/NJ services like YACC and CML.
Adding the following line to your .cm files enables
you to use the SML/NJ library routines.
To view the paths that CM uses to search for .cm
files, use the following command at the SML/NJ prompt:
You can easily make CM search the PSciCo libraries by appending
your pscico working directory path to your CM_PATH
Using CVS with Windows NT
In the following instructions, I assume that the CVS working
directory is 'C:\Program Files\unix\cvs'. You
can use any directory you like though. A working directory is the
directory you checkout files to, and modify source code in.
- Download the CVS archive 'cvs-1_9-win.zip'
from pscico's tools directory.
- Unzip the CVS archive into 'C:\Program
- Add the directory 'C:\Program
Files\unix\cvs' to your environment's
- Test that CVS is properly installed by bringing up the DOS
command prompt, and typing the command 'cvs
-v'. You should see a message stating that the version
of CVS is 1.9.
Using CVS Locally
To use CVS locally, you need to mount pscico's AFS repository
as a network drive. If you can't do this please read Using
CVS Remotely. Assume you have the pscico directory mounted as
- Set the environment variable CVSROOT to
- Set the environment variable USER to your user
Now you need to install the pscico source tree on your
machine, by checking out the source tree using CVS. Assume you
want the pscico directory installed in the directory
- Bring up the DOS command prompt.
- CD to the directory
- Type the command cvs checkout pscico.
This procedure will install a directory called
pscico in the directory
'C:\user\derby' containing the current pscico
sources. You can bring the source files in your working directory
upto date by issuing the following command:
cvs update -d
The -d option creates any new directories which have
been added to the project.
NOTE:It is important that the -d
flag comes after update keyword. cvs -d updatemeans
something totally different.
Using CVS Remotely
I'm working with the CVS maintainer to figure out how to use
Installing Pscico on Unix
To set up pscico on Unix, you need set up the following items:
- the environment variables for pscico
- a pscico working directory
Pscico's Environment Variables
You need to modify your shell's startup script. If you are
using bash, you would add the folling lines to your
# The pscico project directory
# Your working directory
# Pscico's source code repository
# The latest version of SML/NJ
# Set up the path to use the latest cvs and SML/NJ
# Set the search path for CM to look in the pscico and SML/NJ
Pscico's Working Directory
Using the Pscico Project
Pscico's CVS setup
- app - contains various scientific applications
- nbody - contains various nbody implementations
- convexhull - contains various convex hull
- lib - contains code implementing PSCICO library routines
- numbers - algebra, e.g., rings, fields
- geometry - geometry, e.g., points, vectors, hyperplanes
- graphics - contains code for creating 3D models in VRML. Here
is a torus to test out
- random - contains source files implementing a simple
sequential random number generator. I will extend this module
with a parallel random number generator later.
- generatepoints - contains source files for generating
different distributions of points
- sequence - in progress
- www - This module contains the HTML index page for the top
level PSCICO dirctory.
- media - This module contains pictures, textures, etc. for the
If you have any question about this web page, please send mail to
Last update: Monday, July 30, 2001 2:12:21 PM