Fedora 23 install a Network Simulator (Network Simulator 2)

Source: Internet
Author: User

Fedora 23 install a Network Simulator (Network Simulator 2)

Fedora 23 install a Network Simulator (Network Simulator 2)

1. Lab Environment

OS: Fedora 23 Workstation

2. Lab steps

(Reference: http://www.isi.edu/nsnam/ns/ns-build.html)

The lab environment of this experiment:

OS: Fedora 23 workstation

Link: https://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download

Nsversion: 2.35

Go to the file directory, run the install script, and install NS2.

Fault: Xlib. h file missing

Solution:

(Reference :)

The header file is generally in the devel package (devel or dev is developed by develop)

Install libX11-devel.x86_64

Commands: dnf install libX11-devel.x86_64

Problem:

If there is no X pair des (it should be a head file library), all the solutions on the Ubuntu platform are found on the Internet, but the platform problems are not big.

If the header file is not found, it may be that there is no relevant header file or the header file is not found by the compiler. This problem can be solved in either case.

Install the relevant header file: libXt-devel

Dnf install libXt-devel

New questions:

Modify the related file ns-2.35/linkstate/ls. h as prompted.

Modify the function.

(Reference: http://ubuntuforums.org/showthread.php? T = 2206085)

Run./install again

The installation is complete!

Usage prompt after installation is complete

1. Modify the environment variable PATH LD_LIBRARY_PATH TCL_LIBRARY

Export PATH = $ PATH:/home/gee/Documents/ns-allinone-2.35/bin:/home/gee/Documents/ns-allinone-2.35/tcl8.5.10/unix: /home/gee/Documents/ns-allinone-2.35/tk8.5.10/unix

Export LD_LIBRARY_PATH =/home/gee/Documents/ns-allinone-2.35/otcl-1.14:/home/gee/Documents/ns-allinone-2.35/lib

Export TCL_LIBRARY =/home/gee/Documents/ns-allinone-2.35/tcl8.5.10/library

(You can write these data to/etc/profile, which will take effect after restart)

2. Test

Run./ns-2.35/validate

(This task takes 1 to 30 hours ......)

There is a problem: Follow the previous one, first enter the ns-2.35/directory before running the validate command, because validate is a script, it uses the relative path, if the current path is not ns-2.35/the file cannot be found.

Cd ns-2.35

./Validate

(Some tests succeeded, some failed)

The installation is successful. Run the ns command.

(If % is displayed, the ns command is executed normally)

Run the built-in routine to verify the ns installation again

Problem:

Refer:

Install libXmu-devel first

Dnf install libXmu-devel

Install the library files required by tcl

Dnf install tcl-devel

Run ns/home/gee/Documents/ns-allinone-2.35/ns-2.35/tcl/ex/simple. tcl again

Run

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.