problem in ns2
hello friend
i have problem in instalation of ns2.34 ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined ld: final link failed: Bad value make: *** [libotcl.so] Error 1 otcl-1.13 make failed! Exiting ... See http://www.isi.edu/nsnam/ns/ns-problems.html for problems i do this solution but don't work Replace -SHLIB_LD="ld -shared" with +SHLIB_LD="gcc -shared" |
Please use the patch ``otcl_ns234_gcc-4.4.patch´´
https://drive.google.com/file/d/0B7S...ew?usp=sharing ... which will edit the otcl-1.13/Makefile.in , line 16 From : SHLIB_LD= @SHLIB_LD@ To : SHLIB_LD= gcc -shared * The classic way of using a patch for otcl-1.13/configure : ... isn't working with e.g. Ubuntu 12.04 - i686. ( Example "patch not working" : otcl-113-configure.in.patch ). I.e. please do not edit otcl-1.13/configure - |
plz sir how to use it???
|
Thannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnk's sir
|
hello sir
know i try with this https://abdusyarif.wordpress.com/201...-step-by-step/ all step done until If the previous commands passed successfully then you are ready to test your “Leach” by running ./test: i have this problem bash: ./test: Permission denied |
← ref. #5.
Permission denied : Is what you get when unpacking ns-allinone-2.34.tar.gz with a Windows© tool. You can do : $ chmod +x test .... to add the executable bit. May also be corrupt : 'leach_test'. P.S. : The text .. https://abdusyarif.wordpress.com/201...-step-by-step/ ... isn't valid any more. Don't expect Leach to work. The text is a copy of the '01 Apr 2011' post #5 here http://www.linuxquestions.org/questi...34-a-870368/#5 The edited cmu-trace.h is in post #9 here http://www.linuxquestions.org/questi...ra13-907076/#9 - |
Quote:
not even in scientific journals always be skeptical of ANYTHING published on 04-01-???? ( or DMY 01-04-????) |
sir i have this result
that means leach it add???? |
← ref. #5.
There is no command by name ./leach.out . The script leach.out is a text file, to be read in an editor. Or with $ cat leach.out The same goes for leach.err : Also a text file that you can read. The only command to be run is $ ./test , which will then run leach_test, ... with the options you can read in leach_test. P.S. : No black images, please. Just copy / paste the text to the post. - |
thank u sir
i m sorry for image |
I'm very sorry sir
But in the leach.out i have 0 butyes |
← ref. #11.
What's in leach.err ? Must look like this, for an OK build of ns-2.34 + {leach, pegasis} Code:
mac/chanel.cc: INITIALIZE THE LIST xListHead Please make sure, that you have no PATH set for ns in .bashrc, .. and that the '/usr/local/bin/ns' is the one with "Leach". - |
When i make ./test
i have this msg num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 89.8 SORTING LISTS ...DONE! NS EXITING... |
in leach error
invalid command name "source/home/laroui/Bureau/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl" while executing "source/home/laroui/Bureau/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl" (file "mit/uAMPS/sims/uamps.tcl" line 16) invoked from within "source.orig mit/uAMPS/sims/uamps.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig[list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig[list $fileName] ..." (procedure "source" line 8) invoked from within "source mit/uAMPS/sims/uamps.tcl" (file "tcl/mobility/leach.tcl" line 18) invoked from within "source.orig tcl/mobility/leach.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig[list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig[list $fileName] ..." (procedure "source" line 8) invoked from within "source tcl/mobility/$opt(rp).tcl" (file "tcl/ex/wireless.tcl" line 187) |
Now i have this problem
At 1.0999999999999999: Total Energy = 29779.716165978647 Total Data = 0 Total Alive = 4 Simulation complete. num_nodes is set 101 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 222.8 and leach.err INITIALIZE THE LIST xListHead SORTING LISTS ...DONE! |
All times are GMT -5. The time now is 08:53 PM. |