Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Install ActiveTcl on a Debian Linux based distribution without breaking the APT packaging system.

851 views
Skip to first unread message

Rani Ahmad

unread,
May 25, 2015, 11:40:29 PM5/25/15
to
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.

Rich

unread,
May 26, 2015, 6:21:48 AM5/26/15
to
Rani Ahmad <ran...@gmail.com> wrote:
> 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.

Since Debian is Linux, why don't you simply compile from source and
create an actual APT installer bundle?

Rani Ahmad

unread,
May 30, 2015, 4:51:05 AM5/30/15
to
The reason is I like the teacup repository. it's readily made.
0 new messages