Results 1 to 5 of 5

Thread: ns2 installation error

  1. #1
    Join Date
    Feb 2014
    Beans
    5

    ns2 installation error

    I am trying to install ns-allinone-2.35 on the latest ubuntu x64. Already installed all the updates for ubuntu.
    successfully unziped
    Ran the following commands
    Code:
     $ sudo apt-get install build-essential autoconf automake libxmu-dev
    sudo apt-get install xorg-dev g++ xgraph
    But when trying to install ns2 getting this error at end. Anyone else here installed ns2 successfully?


    Code:
    In file included from linkstate/ls.cc:67:0:
    linkstate/ls.h: In instantiation of ‘void LsMap<Key, T>::eraseAll() [with Key = int; T = LsIdSeq]’:
    linkstate/ls.cc:396:28:   required from here
    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<int, LsIdSeq, std::less<int>, std::allocator<std::pair<const int, LsIdSeq> > >’ are not found by unqualified lookup
    linkstate/ls.h:137:58: note: use ‘this->erase’ instead
    make: *** [linkstate/ls.o] Error 1
    Ns make failed!
    See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
    I am absolute beginer, so please be patient.

  2. #2
    Join Date
    Feb 2014
    Beans
    5

    Re: ns2 installation error

    Seems to have done it with a bit of help from google.
    For anyone interested http://www.nsnam.com/2013/10/install...-2-ns-235.html
    Some of the validation tests failed but overall ok.

  3. #3
    Join Date
    Mar 2014
    Beans
    1

    Re: ns2 installation error

    change following line in ns-2.35/linkstate/ls.h file.

    Line No.: 138
    Change
    void eraseAll() {erase(baseMap::begin(), baseMap::end()); }
    With
    void eraseAll() { baseMap::erase(baseMap::begin(), baseMap::end()); }
    and run ./install from all-in-one folder.

  4. #4
    Join Date
    May 2014
    Beans
    1

    Re: ns2 installation error

    Very thanks deepakdeeppanwar for your reply, I am faced the same problem( "std::map<int, LsIdSeq, std::less<int>, std::allocator<std:air<const int, LsIdSeq") while installing ns2.35 in ubuntu 14.04 LTS 64 bit and solved it using your advice.

  5. #5
    Join Date
    Jul 2014
    Beans
    9

    Re: ns2 installation error

    thanks it was very useful

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •