next up previous contents
Next: Linux Up: Installing Tcl/Tk Previous: Windows   Contents

Macintosh

A Tcl/Tk distribution is shipped with Macintosh OS X and you can use it for executing tkDerm. This option may bring some problems because tkDerm requires some non-standard packages of Tcl/Tk that may not be included in usual Tcl/Tk installations.

If you use Tcl/Tk shipped with Macintosh OS X, you should know whether the required packages are included in the distribution by the following method.

Excute tclsh in the terminal, and type as follows.

$ tclsh
% package require Img
% 1.3
% package require Tktable
% 2.9
% package require Expect
% 5.43.0
% package require msgcat
% 1.4.2
% package require csv
% 0.7.1
If version numbers are returned as in this example, the packages are installed.

If the message "can't find package 'package-name'" is returned instead of the version number, the package is not installed. You should get the package and install it.

ActiveTcl contains all the required packages for executing tkDerm. In this section, the installation method of ActiveTcl will be explained.

Download the installer for Macintosh from www.activestate.com.

Double-click the installer and follow the instruction.

The installation method is essentially the same as the Windows version described above.

The excutables of ActiveTcl are located under /usr/local/bin. If the environment variable "PATH" does not contain this directory, add

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

to .profile or .bash_profile in your home directory if your login shell is bash.

This setting will be effective at the next login. If you want to get this setting effective right now, type

$ source .profile
or
$ source .bash_profile

in the terminal.

Caution: The wish program shipped with Snow Leopard is the 64 bit version and incompatible with tkDerm. Snow Leopard users should use the ActiveTcl's wish or the starpack version of tkDerm available free on the Mac App Store.


next up previous contents
Next: Linux Up: Installing Tcl/Tk Previous: Windows   Contents
manabu 2010-11-14