In Windows XP, cygwin + NS2. 2.27 is successfully installed.

Source: Internet
Author: User

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. 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.