nscl_logo_small.gif (2463 bytes)

Obtaining and Installing SpecTcl

HH00706_.wmf (6530 bytes)

SpecTcl Home  General Information User Guide Programmer's Guide Obtaining and Installing

Obtaining SpecTcl

To build SpecTcl you will need gnu flex, gnu bison and the gnu g++ compiler and libraries. You will also need either OpenMotif, and the Tcl/Tk development software.

SpecTcl is now hosted at Sourceforge.  Sourceforge is an open source project hosting service.  To obtain and install SpecTcl, point a web browser at:

http://www.sourceforge.net/projects/nsclspectcl

Top

Installing SpecTcl

Installing SpecTcl requires that you:

Unpacking the distribution

The distribution file; SpecTcl.tar.gz is a gzipped tar file, extract it into the build directory as follows:

$ gunzip SpecTcl.tar
$ tar xf SpecTcl.tar
$ rm SpecTcl.tar

This will create a directory named SpecTcl where v is the current SpecTcl version and r the revision. This directory will be called the build directory and will be referred to as $BUILDIR.

Top

Choosing and creating an installation directory

The installation directory is where SpecTcl will live after it has been built. Create an installation directory which you are allowed to write into. For example as root:

mkdir /usr/local/spectcl

This directory will be referred to as $INSTDIR in the remainder of the page, and is called the Installation directory. It should be a 'well known' directory for optional software, usually /opt/spectcl or /usr/local/spectcl.

Building and installing SpecTcl

A shell script builds SpecTcl and copies the required binary components in to the installation directory. To build SpecTcl:

$ cd $BUILDIR
$ build.sh

Recommendations:

At the NSCL, we install Spectcl in /usr/opt/spectcl/<version>  where <version> is the SpecTcl version number. We also maintain a link /usr/opt/spetctl/current that points to the version of SpecTcl we want most people to use.  This allows several versions of SpecTcl to coexist simultaneously.

 

SpecTcl Home  General Information User Guide Programmer's Guide Obtaining and Installing


Last Modified: October 28, 2003 by: fox@nscl.msu.edu
Copyright NSCL 1999, All rights reserved