Ns2.27 is an old and classic version. Although ns2.34 has appeared ...... But if you learn from the same door, you should install ns2.27, which has fewer problems ......
NS-2 is opensource, the earliest version is running in Linux/Unix, and later with Windows VC compiled run version, but since 2.26, I gave up support for VC, so now there are only two ways to install NS2. either install Linux or install cygwin on Windows, and then install NS2.
Linux installation (rh9 is about 5 Gb) is not worthwhile for a NS2. so I decided to use cygwin!
For more information about the installation procedure, see http: // 140.116.72.80 /~ Smallko/int32/setup_en.htm
There are several notes:
1. The eighth step of ns2-setup is as follows:
Right-click notepad and open C:/cygwin/home/Administrator/. Bashrc (of course, the location of the file varies depending on the installation path). Add the following information to the end of the file:
Export ns_home =/home/Administrator/Ns-allinone-2.27
Export Path = $ ns_home/Nam-1.10: $ Ns_home/tcl8.4.5/Unix: $ ns_home/tk8.4.5/Unix: $ ns_home/bin: $ path
Export LD_LIBRARY_PATH = $ ns_home/tcl8.4.5/Unix: $ ns_home/tk8.4.5/Unix: $ ns_home/otcl-1.8: $ ns_home/lib: $ LD_LIBRARY_PATH
Export tcl_library = $ ns_home/tcl8.4.5/Library
Save. bashrc, open cygwin, and run startxwin. bat.
2. Follow the prompts In the tutorial to enter: Cd ~ /Ns-allinone-2.27/ns-2.27/ns-tutorial/examples press enter will appear: no such file or directory, indicating the path is wrong, or honestly CD into the subfolders
3. Run NS example2.tcl.