title: ns2 allinone installation error in ubuntu 13.10
body: <p>i'm trying to install ns2 in my ubuntu 13.10 with the ns-allinone-2.35.tar.gz package.</p>
  
  <p>at first i was getting x11/* directory not found errors. after following some tutorial and installing following tools, helped me overcome those problems.</p>
  
  <pre><code>sudo apt-fast install tcl8.5-dev tk8.5-dev
  sudo apt-fast install build-essential autoconf automake
  sudo apt-fast install perl xgraph libxt-dev libx11-dev libxmu-dev
  sudo apt-fast install xorg-dev g++ xgraph
  </code></pre>
  
  <p>however, now i'm getting the following error:</p>
  
  <pre><code>linkstate/ls.h:137:58: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
    void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
                                                            ^
  linkstate/ls.h:137:58: note: declarations in dependent base ‘std::map&lt;int, LsIdSeq, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;const int, LsIdSeq&gt; &gt; &gt;’ are not found by unqualified lookup
  linkstate/ls.h:137:58: note: use ‘this-&gt;erase’ instead
  make: *** [linkstate/ls.o] Error 1
  Ns make failed!
  </code></pre>
  
  <p>this is the 5th day i'm trying to install and failed. after getting irritated while installing in windows 7 with Cygwin due to so much dependencies, now i'm trying in ubuntu but getting such errors.</p>
  
  <p>how to resolve this?</p>