ActiveState has created a Tcl Extension Archive tool called teacup which simplifies the installation of binary extensions to Tcl. It’s included with ActiveTcl, but if you’re using Tcl from MacPorts and want to use teacup, it’s fairly easy:
1. Download teacup for MacOS X
The teacup binary can be downloaded from this location:
Here is a direct link to the latest teacup binary. The file is named file.exe — simply rename that to teacup and put it in /usr/local/bin or another convenient place in your $PATH.
2. Create the installation repository
You will need an installation repository where teacup can store its data locally. The default location is /Library/Tcl/teapot and you can create it like this:
$ sudo teacup create Repository @ /Library/Tcl/teapot Created
3. Patch MacPorts tclsh to handle teapot repositories
$ sudo teacup setup /opt/local/bin/tclsh Looking at tcl shell /opt/local/bin/tclsh ... Already able to handle Tcl Modules. Already has the platform packages. Patching: Adding code to handle teapot repositories ... Done
4. Link teacup to MacPorts tclsh
$ sudo teacup link make /Library/Tcl/teapot /opt/local/bin/tclsh Ok
That’s it! You’re done. You should now be able to list available packages within TEA using teacup list and install them using sudo teacup install "packagename".
I’ve tested this on MacOS X 10.6.1 Snow Leopard with Tcl 8.5.7 from MacPorts.
Tags: HOWTO, Tcl, ActiveState, TEA, teacup








March 12th, 2010 at 10:30 pm
Mikki: I would hazard a guess that any reasonably experienced technician should do an adequate job. Obviously, every individual ...
March 12th, 2010 at 9:52 pm
Okay...now you have me worried...I've had my WONDERFUL Bosch washer/condensation dryer for about 8 years without a problem (okay so ...
March 11th, 2010 at 8:45 am
I'm not sure, but I'm guessing it's the belt that turns the drum - may be too tight, may be ...
March 11th, 2010 at 6:57 am
Hello all. I now have a different problem. The drum groans as it spins. When you try ...
March 10th, 2010 at 9:35 pm
Hi Dossy, Thanks much for sharing the knowledge with others. This article helps me to avoid DISM errors : ...