Go up one levelGo to Previous Go to Next

Building the Software

Optionally define the environment variable TCLTK_ROOT to point to the top level install directory for Tcl (for example, /usr/local):

 

 
	% setenv TCLTK_ROOT /usr/local              # for csh, tcsh

or:

 
	% TCLTK_ROOT=/usr/local; export TCLTK_ROOT  # for sh, ksh, bash

To compile the sources, type the following from the top level directory:

 
	% configure -prefix $INSTALLDIR --with-gcc 
	% make all 
	% make install

$INSTALLDIR should be the name of the top level directory (such as /usr/local or $PWD/install) in which to install the software. The default install directory is /usr/local.

The configure option --with-gcc says to use GNU gcc and g++. If you want to use CC and cc instead, specify the --with-cc option:

 
	% configure -prefix $INSTALLDIR --with-cc

If you prefer using shared libraries and loadable Tcl modules add the option:

 
	--enable-shared

Note that if you are using g++, you must also have libg++ compiled as a shared library for this to work (libg++-2.7.2.x also has the "--enable-shared" option). Also, if you use --enable-shared, both static and shared libraries will be generated, otherwise only the static versions.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory