Notes on installation of Fedora8.0 + NS-2.33

Source: Internet
Author: User
Who said that the 64 bits machine is not good enough to install ns? In my opinion, these programs are running in the operating system, and whether the ns can be run can only be determined by the operating system, all the actions of your hardware are dominated by the operating system. Is it still possible for me to install NS? In order to install a NS (networksimulation), these days have really worn me out. The main problem is that the nam cannot be automatically installed. I can't help but ask the teacher! The following is my installation process, which is simple! (However, I cannot guarantee other machines and Systems

Who said that the 64 bits machine is not good enough to install ns? In my opinion, these programs are running in the operating system, and whether the ns can be run can only be determined by the operating system, all the actions of your hardware are dominated by the operating system. Is it still possible for me to install NS?

In order to install a NS (network simulation), these days have really worn me out. The main problem is that the nam cannot be automatically installed. I can't help but ask the teacher!

The following is my installation process, which is simple! (However, I cannot ensure that other machines and systems and ns versions can be installed normally, and there is no money to buy machines for experiments, only my existing experiment environment [AMD Athlon 64x2 + Fedora 8.0])

(1) download the NS installation package, because it is a cainiao, beginner, maybe the door has not yet entered! Therefore, we recommend that you install all the kits at a time in the lab book. It seems that you need to install one package for 200 ~ MB disk space. Download the newest NS-allinone kit to the website http://www.isi.edu/nsnam/ns/ns-build.html, my current newest kit is ns-allinone-2.33, compressed package download down also has around 50 m.

(2) configure the system environment. In fact, this is not a configuration. Only a few dependent packages are installed. Without these dependency packages, I guarantee that you cannot install NS in 100%. To install dependency protection, run the following command.

# Yum install gcc-c ++
# Yum install libX11-devel
# Yum install xorg-x11-proto-devel
# Yum install libXt-devel

The above is the compiling environment and dependency package of the main program. The following command is the dependency package of nam. Of course, if you use data, you can analyze a simulated network. You can skip NB installation!

# Yum install libXmu-devel

(3) officially install the NS suite. Idea: enter your home directory, decompress the package, run the installation command, and configure the corresponding environment variables. (Suppose I installed it in the/home/zhuhu/Public directory)

Enter the Public directory:
# Cd/home/Hu/Public

Decompress the installation package:
# Tar xvzf ns-allinone-2.33.tar.gz

Enter the decompressed Folder:
# Cd/home/mozhu/Public/ns-allinone-2.33

Execute an installation file, and the system will automatically install everything:
#./Install

After the installation is complete (it may take several minutes to compile), some information will appear. As follows:

Ns-allinone package has been installed successfully.
Here are the installation places:
Tcl8.4.18:/home/Hu/Public/ns-allinone-2.33/{bin, include, lib}
Tk8.4.18:/home/Hu/Public/ns-allinone-2.33/{bin, include, lib}
Otcl:/home/zhuhu/Public/ns-allinone-2.33/otcl-1.13
Tclcl:/home/mozhu/Public/ns-allinone-2.33/tclcl-1.19
Ns:/home/Baihu/Public/ns-allinone-2.33/ns-2.33/ns
Nam:/home/Baihu/Public/ns-allinone-2.33/nam-1.13/nam
Xgraph:/home/zhuhu/Public/ns-allinone-2.33/xgraph-12.1
Gt-itm:/home/Baihu/Public/ns-allinone-2.33/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

Please put/home/mozhu/Public/ns-allinone-2.33/bin:/home/mozhu/Public/ns-allinone-2.33/tcl8.4.18/unix:/home/mozhu/Public/ns-allinone-2.33/tk8.4.18/unix
Into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

Important notices:

(1) You MUST put/home/Hu/Public/ns-allinone-2.33/otcl-1.13,/home/Hu/Public/ns-allinone-2.33/lib,
Into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
Into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
Setenv LD_LIBRARY_PATH
If you are using sh, you can set it like:
Export LD_LIBRARY_PATH =

(2) You MUST put/home/zhuhu/Public/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
Variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite
Cd ns-2.33;./validate

For trouble shooting, please first read ns problems page
Http://www.isi.edu/nsnam/ns/ns-problems.html Also search the ns mailing list archive
For related posts.

With the above information, we can see that the main things have been installed successfully, and the next step is to configure the environment variables. Open a new console,

Run the following command:
$ Gedit. bashrc

Configure the environment variables in the following section:
#. Bashrc

# Source global definitions
If [-f/etc/bashrc]; then
./Etc/bashrc
Fi

# User specific aliases and functions
Alias rm = 'rm-I'
Alias cp = 'cp-I'
Alias mv = 'mv-I'

Export PATH = "$ PATH:/home/Hu/Public/ns-allinone-2.33/bin:/home/Hu/Public/ns-allinone-2.33/tcl8.4.18/unix: /home/mozhu/Public/ns-allinone-2.33/tk8.4.18/unix"

Export LD_LIBRARY_PATH = "$ LD_LIBRARY:/home/Hu/Public/ns-allinone-2.33/otcl-1.13:/home/Hu/Public/ns-allinone-2.33/lib"

Export TCL_LIBRARY = "$ TCL_LIBRARY:/home/Hu HU/Public/ns-allinone-2.33/tcl8.4.18/library"

Save and exit! This completes the NS installation.

(4) verify whether the installation is correct. I have posted a lot of posts on the internet, saying what valide program can be executed to verify that NS is correctly installed, and I am also eager to say that the verification time is about 15 minites. I really took the water of these people, the reposted information is not specified, and you do not need to change your mind or experiment on your own! In fact, you can determine whether the installation is correct in two steps. Open a console and enter the following command:

$ Ns

If one % is displayed, the main component is successfully installed;

Then find the simple. tcl file in the/home/mozhu/Public/ns-allinone-2.33/ns-2.33/tcl/ex directory and execute the following:

$ Ns/home/Hu/Public/ns-allinone-2.33/ns-2.33/tcl/ex/simple. tcl

If you have a simulated Web Animation, Congratulations. Your NS is basically installed. You can use the cainiao-level functions with ease. (Author: wanglilife)

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.