Lab 1: Installing ns-2

1.a. Getting the pieces

1.b. Using existing tcl/tk distribution
If tcl/tk 8.4.14 are already installed in your system, you can re-use them to install otcl, tclcl, ns-2, and nam by taking the following sub-steps.

1. Make sure you know where these tcl/tk header and library files are. Usually,

If you cannot locate a coherent copy for tcl/tk 8.4.14, skip 2 and 3 and go directly to I.b.alt. It is probably easier to install tcl/tk in your home directory.

2. Set environment Variables 3. Set options when 'configuring' otcl, tclcl, and ns-2 in step I.c. below 4. Skip I.b.alt. But if you have trouble completing 'configure' in step I.c., follow the instruction in I.b.alt. to install tcl/tk 8.4.14.

1.b.alt. Installing tcl and tk
1. Configure and install tcl/tk

2. Important files 3. Environment Variables 4. Options to set when 'configuring' otcl, tclcl, and ns-2

1.c. Installing/Re-installing the otcl, tclcl, ns-2, and nam
For each of these packages, you need to run the 'configure' script which in turn creates a 'Makefile' with (supposedly) correct BIN, INCLUDE, and LIB paths and filenames.

Occasionally, your configure script may pass, but it locates incoherent combination of BIN, INCLUDE, and LIB paths and files. In this case, 'make' will fail and you will need to manually edit the Makefile so when compiling the compiler will find the right path/file to look/link.

1.d. Quickly checking whether successfully installed ns-2 and nam

References:


Last modified: Thu Apr 26 19:56:52 MET DST 2001