TCL ADA SHELL

 

Install and Build TASH on Unix

 

TASH is developed on a 600 MHz Celeron PC (192MB RAM) running Windows XP and GNAT 3.15p. It has also been tested with GNAT 3.15p in the following environments:

  • Sun/SPARC with Solaris 8

Get an Ada 95 Compiler

You will need an Ada 95 compiler to build TASH. A description of GNAT may be found at the Libre Software site and the compiler is available via anonymous ftp from ftp://cs.nyu.edu/pub/gnat/ and its mirrors.

Get and Install Tcl/Tk

You will also need Tcl/Tk itself to build TASH. The home page is the Tcl Developer Xchange. This provides additional information about Tcl/Tk and instructions on how to get and install it. Be sure to install, at a minimum, the binary installation along with the header files and libraries.

Get TASH

Download any one of tash841a.tar.gz, tash841a.tar.Z, or tash841a.zip. All three contain the necessary files for building both the Unix and Windows variants of TASH.

Uncompress and extract TASH

Execute one of the following commands from a shell prompt, depending on which file you downloaded:

gzcat tash841a.tar.gz | tar xvf -
zcat tash841a.tar.Z | tar xvf -
unzip tash841a.zip

You can install from the zip archive file if you have a copy of the unzip program for Unix. See Info-ZIP for more information and to download it.

Configure makefiles for your system

Execute these commands at a shell prompt:

cd tash841a
./setup.tcl

If Tcl/Tk was installed correctly, a wish script will run which sets values for several makefile macros used to customize your TASH build. In most cases (all the ones I've tested), the default values will be OK. If not, type in the correct values. Note that wish must be in your path for setup to run properly.

Press the Save button to create the makeconf file in the tash841a directory.

Build TASH and run the "Hello World" test program

Execute these commands at a shell prompt:

cd tash841a/src
make all test

This will build the TASH library and the hello_world test program.

Note that Unix and Windows use the same makefile. It was customized when you executed the setup.tcl file to work with Unix via the macros in the makeconf file.

If you get an error building tclmacro.o or tkmacro.o, this may be because the Tcl header files are not in the include directory specified in the tash841a/makeconf file. Either fix the include directory name (TCL_INCLUDE) or reinstall Tcl.

Build and run TASH tests

To verify that TASH runs properly in your environment, build and run the TASH test programs:

cd tash841a/tests
make all test

Build and run TASH demos

Here are several sample programs you can peruse and learn how to write your own TASH programs:

cd tash841a/demos
make all test

Build and run TASH applications

Here are some real TASH applications you can build and use as-is. Plang works somewhat like the Unix file command. It tries to figure out what programming language each file on its command line was written in.

cd tash841a/apps
make all test