Install the network simulation software of NS2.

Source: Internet
Author: User
For many of my friends, it seems that it is difficult to install the ns2-based Network Simulation Software in Ubuntu. I would like to write it out and share it with you. NS2. is a set of famous network simulation software, I think the installation on Ubuntu is still simple, the first thing to install is: # sudoapt-getinstallbuild-essential # sudoapt-getinstalltcl8.4tcl8.4-devtk8 Which of the following network simulation software is used in Ubuntu 6?

For many of my friends, it seems difficult to install the ns2-network simulation software in Ubuntu. I 'd like to write it out and share it with you.

NS2. it is a well-known network simulation software. I think it is simple to install it on Ubuntu. The first thing to install is:

# Sudo apt-get install build-essential
# Sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev
# Sduo apt-get install libxmu-dev libxmu-headers

First download the NS2. (http://jaist.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.32.tar.gz) the latest version is 2.32.

Linux community suggestion: you can move the decompressed folder to the location you want to install. For example:

# Tar xvfz ns-allinone-2.31.tar.gz
# Sudo music ns-allinone-2.31/usr/local/NS2.
# Cd NS2.
#./Install

After waiting for some time, you will see a message asking you to modify. bashrc or. cshrc. Add it as prompted.

For example, my. cshrc will move or add the following lines:

Set path = (/sbin/bin/usr/sbin/usr/bin/usr/games/usr/local/sbin/usr/local/bin/usr/X11R6/bin
$ HOME/bin/usr/local/NS2./bin/usr/local/NS2./tcl8.4.14/unix/usr/local/NS2./tk8.4.14/unix)

Setenv LD_LIBRARY_PATH/usr/local/NS2./otcl-1.13:/usr/local/NS2./lib
Setenv TCL_LIBRARY/usr/local/NS2./tcl8.4.14/library

If it is. bashrc, it will be:

Export PATH = $ PATH:/usr/local/NS2./bin:/usr/local/NS2./tcl8.4.14/unix:/usr/local/ns2-tk8.4.14/unix
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/int32/otcl-1.13:/usr/local/int32/lib
Export TCL_LIBRARY = $ TCL_LIBRARY:/usr/local/NS2./tcl8.4.14/library

Next, perform verification based on the last few lines of information, for example:

# Cd ns-2.31;./validate

After he finishes running, he can work (it's too slow to do this step ).

If "%" appears when "ns press ENTER", the statement is correct.

If there is a problem, run./install again after the above work is completed.

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.