|
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:
Get an Ada 95 CompilerYou 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/TkYou 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 TASHDownload 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 TASHExecute one of the following commands from a shell prompt, depending on which file you downloaded: 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 systemExecute these commands at a shell prompt: 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 programExecute these commands at a shell prompt:
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 testsTo verify that TASH runs properly in your environment, build and run the TASH test programs: Build and run TASH demosHere are several sample programs you can peruse and learn how to write your own TASH programs:
Build and run TASH applicationsHere 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.
|