Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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."
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.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← #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.)
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?
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
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.