Tcltk standalone install

Download tcl8.5.13-src.tar.gz and tk8.5.13-src.tar.gz from http://sourceforge.net/projects/tcl

Tcl
./configure –prefix=/opt/tcltk/8.5.13 –exec-prefix=/opt/tcltk/8.5.13 –oldincludedir=/opt/tcltk/8.5.13/include –enable-threads
make -j4
make install

Tk
./configure –prefix=/opt/tcltk/8.5.13 –exec-prefix=/opt/tcltk/8.5.13 –oldincludedir=/opt/tcltk/8.5.13/include
make -j4
make install

Module-file /etc/modulefiles/tcltk/8.5.13
#%Module1.0####################################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr “\tAdd environment.”
}

## Create a whatis file.
module-whatis “Add program links, aliases and paths”

## Set alias
set-alias “tclsh” “tclsh8.5”
set-alias “wish” “wish8.5”

setenv TCLHOME “/opt/tcltk/8.5.13”
setenv TCLLIBPATH “/opt/tcltk/8.5.13/lib:/opt/tcltk/8.5.13/lib/tcl8.5”
prepend-path PATH /opt/tcltk/8.5.13/bin
prepend-path LD_LIBRARY_PATH /opt/tcltk/8.5.13/lib

One thought on “Tcltk standalone install

  1. Pingback: ruby 2.2.2 on centos 6.6 | Discretizer | Future of Open Source CAE

Leave a Reply

Your email address will not be published. Required fields are marked *