Hello Guys,

This is my first technical post. I installed Ns2.35 using ns-allinone-2.35. So here are the steps.

1. Download ns-allinone-2.35 from http://mac.softpedia.com/progDownload/ns-2-Download-59777.html

2. Now you have to resolve some dependencies.

( i.) su

( ii.) yum install autoconf

( iii.) yum install automake

( iv.) yum install gcc-c++

( v.) yum install libX11-devel

( vi.) yum install xorg-x11-proto-devel

( vi.) yum install libXt-devel

( vi.) yum install libXmu-devel

3. Place downloaded file in home directory and type tar -xzvf ns-allinone-2.35.tar.gz

4.cd ns-allinone-2.35

5. Now ./install

Error encountered by me:-

In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of ‘void LsMap::eraseAll() [with Key = int; T = LsIdSeq]’:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:20: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
linkstate/ls.h:137:20: note: declarations in dependent base ‘std::map, std::allocator > >’ are not found by unqualified lookup
linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!

Solution:

1. Go to ns-allinone-2.35/ns-2.35/linkstate/

2. Now edit ls.h

In line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); }

make it void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }

3. Save the file and again run ./install

Advertisements