tkcon on ActiveState Tcl 8.6 under Mac OS X Mavericks

Posted by erixoltan on 2013-12-07 09:22

I installed ActiveTcl 8.6 and it works great on my Mac OS X 10.9 Mavericks system. However when I look in /usr/local/bin, I can see both tclsh and wish, but not tkcon.

I want to be able to use the Tcl shell interactively, and I would like to get command line recall the way that you can do in tkcon. If that's no longer available in ActiveTcl, then I am open to using tclsh or wish if there is an easy way to get command line recall working on those shells.

Has anyone else encountered this, and is there some kind of a workaround or a way to solve it?

erixoltan | Sat, 2013-12-07 11:07

I found that this was actually related to my path variable. When I used tkcon, and typed info patch level, it showed the Apple installed version 8.5.9 instead of the 8.6.1 I was looking for to use OO features.

% info patchlevel
8.5.9
%

I had added the following line in .bashrc:

 export PATH=/usr/local/bin:$PATH

However it wasn't being executed for some reason. I tried adding this line in .bash_profile and suddenly tkcon is using the right version of Tcl.

% info patchlevel
8.6.1
%