next up previous contents
Next: Creating a ''postgres'' user Up: Installing Tcl/Tk Previous: Macintosh   Contents

Linux

Almost all the distributions of Linux contain Tcl/Tk, but tkDerm requires some non-standard packages of Tcl/Tk that may not be included in usual distributions. If you use Tcl/Tk shipped with your Linux distribution, 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.

  1. Get the installer for Linux version from www.activestate.com.

  2. Unpack the archive file and change the current working directory to the resultant directory.

    $ tar xzvf ActiveTcl8.4.15.0.280619-linux-ix86.tar.gz
    $ cd ActiveTcl8.4.15.0.280619-linux-ix86
    

  3. After becoming the superuser, execute install.sh as described in README-8.4.txt.

    $ su
    # ./install.sh
    

  4. When the installer is started up, press the "NEXT" button.

  5. Check the "I accept the terms in the License Agreement" checkbox and press the "NEXT" button.

  6. If you accept the default directory as the installation directory, just press the "NEXT" button.

    If you select another directory, type the directory path in the entry and press the "NEXT" button.

  7. If you press the "NEXT" button on the next window, the installation will begin.

  8. On the last window, you will be instructed to extend your PATH and MANPATH variables to get access to the applications and manpages distributed with ActiveTcl.

    For example, if your login shell is bash, add

    PATH="/opt/ActiveTcl-8.4/bin:$PATH"
    MANPATH="/opt/ActiveTcl-8.4/man:$MANPATH"
    export PATH MANPATH
    

    to .profile or .bash_profile in your home directory.

    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.

  9. The installer will end by pressing the "Finish" button.


next up previous contents
Next: Creating a ''postgres'' user Up: Installing Tcl/Tk Previous: Macintosh   Contents
manabu 2010-11-14