LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to install ns2.27 on Ubuntu 9.10 64-bits version (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-ns2-27-on-ubuntu-9-10-64-bits-version-852647/)

doussa 03-10-2013 11:08 AM

Quote:

Originally Posted by knudfl (Post 4908551)
# 14 .

What do you mean ? ?

The tests, './test' and './leach_test' must be run from ns-allinone-2.27/ns-2.27/.
That's the required location.

OK
when I extracted the mit.tar.gz under NS2.27 I have a folder nammed mit inwhich I have test file leach_test file tcl common apps ...and a mit(inwhich leach_sims,rca,uAMPS).

doussa 03-10-2013 11:38 AM

Quote:

Originally Posted by doussa (Post 4908556)
OK
when I extracted the mit.tar.gz under NS2.27 I have a folder nammed mit inwhich I have test file leach_test file tcl common apps ...and a mit(inwhich leach_sims,rca,uAMPS).

Now I move test file and leach_test under NS2.27 an I have the following msg
Code:

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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
./leach_test: line 37: mit/leach_sims/leach.err: No such file or directory

If I replace this path with mit/mit/leach_sims/leach.err,can this resolve the problem ?
I'm witing for your help

knudfl 03-10-2013 03:17 PM

# 16 .
Quote:

when I extracted the mit.tar.gz under NS2.27 I have a folder named mit
in which I have test file leach_test file tcl common
That's wrong. You are supposed to use 'tar xvf mit.tar.gz' inside ns-2.27,
( only the command line can be used ) and you will get :
apps/
common/
mac/
mit/
tcl/
trace/
leach_test*
test*
package_up*
... I.e. if you are using a GUI archive tool for the unpack,
an extra folder mit/ is created : mit/mit/ is absolutely wrong.

-

doussa 03-10-2013 03:42 PM

Quote:

Originally Posted by knudfl (Post 4908711)
# 16 .

That's wrong. You are supposed to use 'tar xvf mit.tar.gz' inside ns-2.27,
( only the command line can be used )
... I.e. if you are using a GUI archive tool for the unpack,
an extra folder mit/ is created : mit/mit/ is absolutely wrong.

-

Ah ok you're right.Thankx for the advice.
ok I will try that.
sorry but I have another question if you can help me:I installed leach in NS2.34 at the same time and I have no problem with the installation of ns2.34 but when I run the "make"(installing leach) I got
Code:

for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/doussa/ns-allinone-2.34/ns-2.34/indep-utils/web

Does it mean that is no problem?
and when I run "bash ./test",I got no errors in leach.err but the total energy=319 which is ellogical result.
thx knudfl for your efforts.

knudfl 03-10-2013 03:55 PM

# 19 .
Quote:

Nothing to be done for `all'.
Means : Everything is OK, because you did build this with a previous 'make'.


Quote:

when I run "bash ./test",I got no errors in leach.err
Perfect.


Quote:

energy=319 which is ellogical result.
Same as post # 13 : Please read answers about energy, probably by @deepa_2111 .
→ I.e. in the two long leach threads.

-

doussa 03-10-2013 04:14 PM

Quote:

Originally Posted by knudfl (Post 4908736)
# 19 .

Same as post # 13 : Please read answers about energy, probably by @deepa_2111 .


-

ok knudfl thx a lot.


All times are GMT -5. The time now is 11:30 PM.