LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-07-2017, 06:58 PM   #1
Goguia13
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
Problem with the installation of ns2.35 on my ubuntu 16.04


Greating to all !
Since this morning, I am trying to install ns3.35 on my ubuntu 16.04, but unfortunately It is not working.
After some time, this message appears :

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:25: 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:25: note: declarations in dependent base ‘std::map<int, LsIdSeq, std::less<int>, std::allocator<std:air<const int, LsIdSeq> > >’ are not found by unqualified lookup
linkstate/ls.h:137:25: note: use ‘this->erase’ instead
Makefile:93 : la recette pour la cible « linkstate/ls.o » a échouée
make: *** [linkstate/ls.o] Erreur 1
Ns make failed!

Please I am waiting for your contributions. This program will is very important for me to conduct my academic project, that the topic is : clustering techniques in WSNs.
Thanks for your various contributions
 
Old 06-08-2017, 04:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Please use the Oct 2014 updated "ns-allinone-2.35_gcc482.tar.gz"
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... updated to use gcc-4.4 ... 5.3 .

`g++-5´ may fail with Ubuntu, then use v4.9 :
sudo apt install g++-4.9
cd ns-allinone-2.35/
export CC=gcc-4.9 CXX=g++-4.9 && ./install


Using gcc-5, g++-5 :
cd ns-allinone-2.35/
./install
cd ns-2.35/
sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ )
cp ns ns-orig ( a backup, and to be used for default simulations )
sudo cp ns-orig /usr/local/bin/

I.e. if you later add a new protocol, all default simulations can still be run like :
$ ns-orig simulation.tcl


-

Last edited by knudfl; 06-08-2017 at 04:45 AM.
 
Old 06-08-2017, 04:54 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
clustering techniques in WSNs
Example 1. 'mannasim'
. http://www.mannasim.dcc.ufmg.br/
. https://www.thinkmind.org/download.p...015_4_40_30078
. https://github.com/paultsr/ns-allinone-2.35
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35 (2014 update)

Example 2. 'LEACH'
http://www.linuxquestions.org/questi...4175556129/#11


-
 
  


Reply

Tags
ns2, ns235


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.34 installation help in Ubuntu 10.10 xptional Ubuntu 46 04-02-2018 01:42 PM
[SOLVED] Help : ns2.29 installation on ubuntu 10.04 Aska123 Linux - Software 32 12-03-2013 12:46 PM
NS2 v2.26 installation on Ubuntu 11.10 ulyssues.fam Linux - Newbie 50 07-28-2012 08:53 AM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration