Hi. The steps:
1- Visit
http://www.activestate.com/activetcl/downloads
Download the suitable version to your Linux system whether it's 64 bit or 32 bit. I have Debian GNU/Linux 8.0 (Jessie) 64bit on my laptop. At the time of this writing the current ActiveTcl version is 8.6.4. So the file that you will download is named "ActiveTcl8.6.4.0.298892-linux-x86_64-threaded.tar.gz" . Please use the file name that *YOU* will download in the next steps according to the current download at the time of you are reading this.
2- Using the terminal we decompress the downloaded file:
tar zxvf ActiveTcl8.6.4.0.298892-linux-x86_64-threaded.tar.gz
3- change to the directory of the decompression output:
cd ActiveTcl8.6.4.0.298892-linux-x86_64-threaded/
4- type `su` to enter as root user.
5- run the installer of ActiveTcl and keep things in there by default, the defaults are OK:
./install
The app by defaults is installed in /opt/ActiveTcl-X.Y (X.Y is the Tcl version , currently 8.6 , therefore it will be /opt/ActiveTcl-8.6 )
All the above is generic to all Linux systems..
6- Now, here is the way to let you use ActiveTcl without breaking the APT packaging system in Debian based distributions, type the following commands. Don't forget to change ActiveTcl-8.6 to whatever you have.
update-alternatives --install /usr/bin/tclsh tclsh /opt/ActiveTcl-8.6/bin/tclsh8.6 90 --slave /usr/bin/wish wish /opt/ActiveTcl-8.6/bin/wish8.6 --slave /usr/bin/tkcon tkcon /opt/ActiveTcl-8.6/bin/tkcon --slave /usr/bin/teacup teacup /opt/ActiveTcl-8.6/bin/teacup
update-alternatives --install /usr/bin/tclsh tclsh /usr/bin/tclsh8.6 20
7- Here we make a tcl packages repository. Those packages are usually called in tcl using [package require pkgname] . type the following shell commands:
teacup create
teacup link make "/usr/lib/teapot" /usr/bin/tclsh
8- finally download all tcl packages that repository has, run the shell command:
teacup update
repeat this command every while to get newer versions of the packages.