Installing NS-2 on Fedora 17 only requires executing the ./install command on the Shell. But many often the Make process will fail. If the Make process fails then change the file ls.h.
The location of
ls.h is the location of
ls.h is
~/ns-allinone-2.35/ns-2.35/linkstate/ls.h.
Open the file ls.h and change the code in line number 137.
The code in line line number 137 is
void eraseAll( ) { erase(baseMap::begin( ), baseMap::end( )); }
Change it into the code given below,
void eraseAll( ) { this->erase(baseMap::begin( ), baseMap::end( )); }
After making the change save the file
ls.h.
Now again run the script
./install in the Shell. The installation will be complete.