LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2015, 02:41 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
reinstall ns2.35 in Mint.17.1


Hi
i have installed ns2.35 in Mint17 but i modified an add some thing to ns2. now i have some problems that i think by reinstalling ns2 may be my problems will solve.
my OS is 64 bit.
so i want to know:
1- how uninstall ns2.35
2- i want a reliable ns2 file, where can i get it? i get here :http://sourceforge.net/projects/nsna...e=typ_redirect
3- how to install it.
 
Old 01-18-2015, 07:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
The original ns-allinone-2.35 :
http://sourceforge.net/projects/nsnam/

ns-allinone-2.35 updated to gcc / g++ version 4.8.2 ... 4.9.1 :
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ ns-allinone-2.35_gcc482.tar.gz

ns-allinone-2.35 updated, also to include ns2 official Codel patches etc.:
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ ns-allinone-2.35_gcc491.tar.gz

Latest update = ns-allinone-2.36.rc1.tar.gz
http://www.isi.edu/nsnam/dist/releas....36.rc1.tar.gz


Removing a folder "ns-allinone-2.35/" : $ rm -r ns-allinone-2.35/
* But really not required :
You can have as many ns-allinone-2.35 as you want,
installed at the same time.
But do not add any *PATH text to .bashrc.


Add 3) : 3- how to install it.
? Why ask ? You have done ns-allinone-2.35 builds several times.
Old 2011 version : $ export CC=gcc-4.4 CXX=g++-4.4 && install
Updated versions : $ ./install


-

Last edited by knudfl; 01-18-2015 at 07:14 AM.
 
Old 01-18-2015, 08:32 AM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
Unhappy

i am realy thankful to you for your help...

i dont know what happend for my ns now. it worked very well, but now every thing has problem also the protocol that i did not change them. i reinstall the ns2.35, but again i dont know why sometimes a simple tcl cant run...
i use aodv and i usualy see this error: "ns: scheduler going backwards in time from 72.997428 to 0.000000."

i add a aodv-malicious_ns235.patch as you say here :http://www.linuxquestions.org/questi...-a-4175505657/ #6

but by runing a tcl scenario in each time i get diffrent errors like :

PacketQueue:: remove() couldn't find target
or
ns: scheduler going backwards in time from 180.507428 to 0.000000.
or
Segmentation fault


i attach the tcl file,by puting different hacker nodes in this scenario in each time that i run the scenario, i get different errors...
i dont know why?!!! my ns2.35 is the source that i install today.
Attached Files
File Type: txt q.tcl.txt (45.5 KB, 21 views)
 
Old 01-18-2015, 09:15 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
← #3 .

$ ns235-malicious q.tcl : Is fairly OK here → →
Code:
num_nodes is set 40
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
PacketQueue:: remove() couldn't find target
→ → The file sm.tr, 6MB is created.


Make sure that you are using a named copy of 'ns' for any added protocol.
Like 'ns235-malicious' : That's for hacker / malicious simulations.

And another 'ns' for default simulations (ns-orig, ns235, ns235-orig).
Not all the default files.tcl may work with "ns235-malicious".


-

Last edited by knudfl; 01-18-2015 at 09:17 AM.
 
Old 01-18-2015, 09:18 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Also :

Are you sure that your Mint 17 is the 32bits (i686) version ?
 
Old 01-18-2015, 09:27 AM   #6
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
no i tellyou in #1 that my OS is 64bit...mint 17.1 64bit

so you say "PacketQueue:: remove() couldn't find target" is not a error? and is the scenario compeletly run?

sorry if you can plz put more than 3 or 4 nodes hacker to my scenario you can see another errors as i told in #3

why this happend? i run this before and i never had this errors.
 
Old 01-18-2015, 10:38 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
← #6 .

Sorry. I missed the "64 bit".

Your errors : May be you updated some packages ?
* Updates will constantly change the OS.
And by using a 64bits OS for ns2 :
You are always close to the point of "not working at all".

Generally : ns2 is for a 32bits OS.
However, some protocols may work OK with a 64bits OS.
( You will always get a poor validate result.)

-
 
Old 01-18-2015, 11:16 AM   #8
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
Unhappy

realy?!!! ohhhh my God.
so i should change to 32bit

i think you are right...it can be the main reason of this problem...
thanks a lotttttt...
 
Old 01-23-2015, 05:45 AM   #9
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post

Make sure that you are using a named copy of 'ns' for any added protocol.
Like 'ns235-malicious' : That's for hacker / malicious simulations.

And another 'ns' for default simulations (ns-orig, ns235, ns235-orig).
Not all the default files.tcl may work with "ns235-malicious".


-
is it nessesery that i use a named copy of 'ns' for any added protocol?!! i think by adding a malicious node to aodv if any malicious node be in the tcl file ,bu run "...$ns name.tcl" could be run..it is not deffirent with using a "...$ns235-malicous name.tcl" is it?
 
Old 01-23-2015, 05:55 AM   #10
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
my problem does not solved by changing my OS from 64bit to 32bit....i have all the problem in #3 . for example by runing this scenario i see segmentation fault error....but the trace file created (the scenario that i attached here).

plz tell me whats the problem with me?

error:

me@me-HP-ENVY-15-Notebook-PC ~/Desktop/exa $ ns sm.tcl
num_nodes is set 40
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
Attached Files
File Type: txt sm.tcl.txt (45.5 KB, 18 views)
 
Old 01-23-2015, 07:53 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
← Ref. #10 .

That would be `sm.tcl´ number 5 ?
26 Nov 2014 sm.tcl, 41.8 kB
06 Dec 2014 ?sm.tcl 43.2 kB
06 Jan ?sm.tcl 4.4 kB
09 Jan 2015 sm.tcl 4.2 kB
11 Jan 2015 s.tcl 4.2 kB
23 Jan 2015 ?sm.tcl 4.2 kB
23 Jan 2015 sm.tcl 45.6 kB
... How about using some unique file names ?
And please also use unique names for files.tr, instead of sm.tr.

Your file sm"5".tcl, attached to the above post #1 :
No `Segmentation fault´ here with : set val(nn) 20
( Can result in 'Segmentation fault' with :
less than 20, or more than 20 nodes.)

set val(nn) 20 → $ ns235-malicious _mary_sm5.tcl →
The file sm.tr 3.7 MB is created.

-
 
Old 01-23-2015, 10:24 AM   #12
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
i am so sorry
because this problem recieve to the problem in other post i continue this post to other one...
continue in http://www.linuxquestions.org/questi...76#post5305576 #4
 
  


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
Coping installed ns2 folder to another location and reinstall it vip2442 Linux - Newbie 1 04-09-2012 04:54 PM
how to reinstall ns2.31 on fedora 12 humairaafzal73 Linux - Software 2 01-18-2012 04:17 PM
Reinstall of Mint 10 Bern1 Linux - Software 2 12-07-2011 09:52 AM
(SOLVED) uninstall linux mint 10 and reinstall Mint 11 ..please.. fozzie54 Linux - Newbie 1 06-11-2011 12:30 AM
Reinstall Gnome Desktop on Mint Cassandra? micawber Linux - Newbie 2 07-29-2007 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:32 AM.

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