Installing Network Simulator NS 2.34 in Fedora

Installing Network Simulator NS 2.34 in Fedora

In this tutorial, we will look at how to install a network simulator that is NS 2.34 on fedora.

I assume that you have already downloaded the NS all-in-one 2.34 package. The tar file contains all the source code with other packages. Please remember that it’s not an RPM that can be installed directly.

The prerequisite for installing NS 2.34 is that you should have cc, gcc C++ compiler. I am going to open the terminal and type cc,  gcc to check whether they are installed. Now you can see that there are no errors just the input file is missing that is not a problem.

To install NS 2.34, create a new directory inside your home folder. To create a new directory, open the home folder, right-click and select create a folder. Let’s give the name of this folder as NS, now let’s open this folder and copy NS all in one 2.34 tar file from the desktop. Select the tar file, right-click it and click extract. Here wait till the extraction is completed. The extracted folder contains all the source code which is needed to be compiled for NS 2.34 installation.

Now open the terminal and type “cd” space ns, slash the ns 2.34 all-in-one, this is the place where we have extracted NS all in one package. Once you are inside this package type ./install you will find C files getting compiled for all the packages, wait till the installation completes.

The video below describes the complete process of Installing Network Simulation, which is NS2.34 on Fedora.

Installing Network Simulator NS 2.34 on Fedora
Once the installation completes, you will find the NS all-in-one package installed successfully, if there are any errors then the installation stops at that point then you need to check what software development package is missing or you need to check for the header files that are missing.

When the installation is successful you will find TCL, NAM as well as XGraph installed in the respective paths. The important note you will find is the instruction to set a path so that NS will work from any directory.

Now you can check whether the installation is successful, I’m going to open the terminal and go till NS 2.34 folder and then type ./ns, if you see a percentage then the installation is successful.