Installing NAP

Table of Contents

  1. Introduction
  2. Installing Tcl/Tk
  3. Installing Printer
  4. Installing nap

Introduction

The graphics procedure plot_nao uses the printer extension. The following instructions explain how to install these three extensions with Tcl/Tk.

Installing Tcl/Tk

Download Tcl/Tk from ActiveState Tcl Downloads. Installation instructions are available from this site.

Installing Printer

Download print(er) from Michael Schwartz's Tcl/Tk Extensions & Information Page. Select Print, then press the i information button. For windows, select the .zip file matching your version of Tcl and unzip it into directory lib. (There are instructions in file printer/install.txt.) For unix, select the link labelled Unix, giving file printUnix.tar.gz and unpack it into directory lib using a command such as
    zcat printUnix.tar.gz | tar -xvf - 

Installing nap

Download nap from Tcl-NAP Files. Binary installation files are available for:

Operating System Processor
Irix 64 SGI MIPS
Linux Intel 386
SunOS 5.8 Sun sparc
Windows Intel 386

(There is also a source file for those who want to access the source without using CVS.) All these files have the extension .tgz, which means they were created using tar, then compressed using gzip. They can be directly unpacked using many recent versions of tar and Windows programs such as WinZip. Unix users can also use:

    zcat nap*src.tgz | tar -xvf - 
You should unpack into the Tcl root directory (parent of bin and lib).

It is convenient to include the following

    package require nap
    namespace import ::NAP::*
in your startup file, which is normally stored in your home directory with the following name:

Operating System tclsh wish tkcon
Windows tclshrc.tcl wishrc.tcl tkcon.cfg
Unix .tclshrc .wishrc .tkconrc

Author: Harvey Davies       © 2002, CSIRO Australia.       Legal Notice and Disclaimer
CVS Version Details: $Id: install.html,v 1.9 2003/05/20 05:28:44 dav480 Exp $