So to plot the characteristics of NS2 parameters like throughput, end to end delay, packets information, etc can be plotted using xgraph The successful installation of NS2 will install xgraph also along with it. To run xgraph from a shell prompt: xgraph filename.
Is xgraph available in ns3? Pls how do i use xgraph in ns3. Ogunsakinor gmail. Sir i am getting segmentation during the execution of the code.. Segmentation fault.. HI, The segmentation is due to memory allocation related issue. As an example you are trying to store 11th value in as array of 10 values.
Ur help is highly appreciated. Regards, ASH. HI, Follow the instruction while installing NS2, which given in this blog. The error generated while installing xgraph in NS-2 2. Change the the below line at in dialog. All of them are discrete-event network simulators, primarily used in research and teaching. This post deals with the installation of "ns2" also called the "network simulator 2" in Ubuntu Download the all in one package for ns2 from here.
The package downloaded will be named "ns-allinone Copy it to the home folder. Then in a terminal use the following two commands to extract the contents of the package. Ns2 requires a few packages to be pre installed. It also requires the GCC- version 4. So install all of them by using the following command:. One of the dependencies mentioned is the compiler GCC The version 4.
To do that, use the follwoing command:. The image below shows the output of executing both the above commands. If you have all the dependencies pre-installed, as I did, the output will look like the image below:. Once the installation is over , we have to make a change in the "ls.
Use the following steps to make the changes:. Navigate to the folder "linkstate", use the following command. Here it is assumed that the ns folder extracted is in the home folder of your system.
Now open the file named "ls. The image below shows the line highlighted in the image below after making the changes to the ls. To open the file use the following command:.
Now there is one more step that has to be done. We have to tell the ns which version of GCC will be used. To do so, go to your ns folder and type the following command:. Now we are ready to install ns2. To do so we first require root privileges and then we can run the install script. Use the following two commands:. It took almost 6 minutes to build and install ns2 on my system. But before we run it, we need to add the build path to the environment path. Active 2 years, 1 month ago.
Viewed 6k times. Having issue in installing xgraph Command used in Ubuntu Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Tejas Lotlikar Tejas Lotlikar 2, 5 5 gold badges 12 12 silver badges 24 24 bronze badges. Sign up or log in Sign up using Google.
0コメント