Mounting the Ubuntu 18.04 ns-allinone-2.35

Due to the recent want to engage in engage in network simulation, you need to use network simulator NS2 on Ubuntu, I thought only Download + install can be ok. Who knows the problem more than a thief.

  1. Most mentioned problems are solved, said ease () instead this-> ease (), because the first seen a lot of content, before installing this on a whim, so it did not have this problem.
  2. In fact, the most troublesome is that after you ./install wait several minutes to get a result Ns make failed, due to hash ambiguous ns_2.35 / mdart / mdart_adp.cc in, which I blinded, mostly to Baidu, He said the first problem, then you can change a success, then Russia is simply not true Arab children. Do you want to delete cycle -> ./ install later that day did not result Azerbaijan?

And finally had to go outside to look, but later found it was said that this ns-2.35 is a good development in 2011, was using g ++ 4, and g ++ 6 for more than a compilation error will occur, so she suggested using gcc4 .8, i.e., execute the command line

sudo apt install gcc-4.8 & g++-4.8

After installation is complete, the next nc-allinone-2.35 directory performed

export CC=gcc-4.8 CXX=g++-4.8 && ./install

This will use gcc4 version of the relevant documents to be compiled (and originally installed is gcc7, so the error), if successful, you will get so

Scuuess

Of course, the path to fill out information according to your own configuration to fill up. Especially important to note that, will take effect after the need to restart after configuration path. If you do not restart on the implementation of the ns or nam tips to get you to install it, please do not install. Restart!

Like most of the tutorial, I also installed several dependent module

sudo apt-get install build-essential
sudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev
sudo apt-get install libxmu-dev libxmu-headers

Summary down the sentence: use GCC4.8, G ++ 4.8. I hope to help you have the same problem.

Note : Do not mistake the code, such as gcc4.8 can not enter became gcc4.8,

From morning to get now. Based on past experience, well the follow-up will still have many problems.

Download the installation package from SourceForge also not very easy, of course, is also OK with the points-ah. You can also click the link below

Free download allinone-2.35-ns , password: 3wfu

Published 25 original articles · won praise 23 · views 10000 +

Guess you like

Origin blog.csdn.net/Secur17y/article/details/81286061