Go up one levelGo to Previous Go to Next

Build the CATLIB Software

To build the software, type:

 
	configure 
	make  
	make install

The default install dir is /usr/local. You can specify the -prefix argument to configure to change this:

 
	configure -prefix $INSTALLDIR

The compilers used are the same as those used to build the tclutil package. The file tclutilConfig.sh is read by configure to get the necessary information.

If you specify the configure option --enable-shared:

 
	configure -prefix $INSTALLDIR --enable-shared

you can build a shared library and load the Tcl commands with the Tcl load command or load it as a Tcl package under the name Cat . The Tcl code to do this would look something like this, assuming the pkgIndex.tcl file for the Cat package is in your Tcl auto_path variable:

 
if {[catch {package require Cat} msg]} { 
	 puts "error loading Cat package $msg" 
	 exit 1 
}


Go up one levelGo to Previous Go to Next

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