Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Install, something like : ( It's a litle tricky, I think.)
( Ref. http://www.linuxquestions.org/questi...581/page2.html )
cd ns-allinone-2.33/ && mv ns-233/ ns-233-mobiwan
And : cd ns-233-mobiwan/ && patch -p1 < ns-233-mobiwan-1.patch
cd ../ && mv ns-2.33-mobiwan/ ns-2.33 && cd ns-2.33/ && ./configure && make
..... But better read all posts #20 ... #26.
thanks alot...i am following your instructions..
now i am facing a problem again .. i think it is related to nam . whenever i am running a TCl script then it is giving me an error as shown below:
[root@riaz scripts]# ns 5nodes.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns attach-agent $n0 $udp0"
(file "5nodes.tcl" line 43)
[root@riaz scripts]#
i have run the same script without any error on another system.
please help
whenever i run a tcl script it gives me an error :
[root@riaz new_project]# ns packetsend.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns_ attach-agent $n0 $udp0"
(file "packetsend.tcl" line 18)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#22
Quote:
2. ./configure
3. make clean
4. make
Add 2. :
Like the first run with the unpatched ns-2.33, you will have to use g++34 :
export CC=gcc34 CXX=g++34 && ./configure && make
Be aware that the resultant binary 'ns' will work only with mobiwan tcl files.
For all default tcl files : Use an 'ns' (ns233-orig) from an unpatched ns-2.33.
The ns-233-mobiwan-1.patch
http://www.nicta.com.au/__data/asset...obiwan-1.patch
More info ( Please also read post # 25, etc.: Save a copy of your original ns as ns233-orig .)
http://www.linuxquestions.org/questi...2-33-a-856104/
And use LQ Search for the other "mobiwan threads".
Install, something like : ( It's a litle tricky, I think.)
( Ref. http://www.linuxquestions.org/questi...581/page2.html )
cd ns-allinone-2.33/ && mv ns-233/ ns-233-mobiwan
And : cd ns-233-mobiwan/ && patch -p1 < ns-233-mobiwan-1.patch
cd ../ && mv ns-2.33-mobiwan/ ns-2.33 && cd ns-2.33/ && ./configure && make
..... But better read all posts #20 ... #26.
it looks ok till we save unpatched 'ns' as ns233-orig but after that in next step when we go into 'ns-allinone-2.33' we do not found any file or directory named 'ns-2333' , there is one folder named 'ns-2.33' , so how can we complete the renaming step "mv ns-233/ ns-233-mobiwan" .
can you please tell me step by step so that i can understand the trick, you provided me the links but i couldnot get those as well.
please reply me , i am in great need of your help, i will wait for your reply. thanks
thanks knudfl.., i installed it sucessfully. then i ran the simple-mipv6.tcl script it ran sucessfully but the nam window is not showing the desired topology. i made the changes for path/source that u mentioned in some other thread i.e. line 93---etc. i got the trace file and please tell me how to calculate throughput and end to end delay parameters by using awk. and please give me the link for awk script for calculating these factors..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#28
Quote:
Is it any problem having LTE patch and mobiwan patch at the same time in the same ns version ?
Yes. Very few ns2 patches can live together.
Solution : Install two times ns-2.33.
The LTE patched ns-2.33 : Save a copy of the binary 'ns' as ns-lte.
The mobiwan patched ... : Save an ns copy as ns-mobiwan.
Then you can use each for the lte / mobiwan dedicated tcl files.
Im facing the same error on post #23 when running a simple script (not mobiwan script) . I am using NS2.33 (patched with mobiwan) on ubuntu 10.10.
I followed the instructions that you wrot on post #5and #18.
These are steps that I did :
1. reinstall ns2.33 (without mobiwan patch)
2. Save a copy of the binary ns : cp ns233-orig /usr/local/bin/
3. cd ns-allinone-2.33/.
4. mv ns-2.33/ to ns-233-mobiwan
5. patch -p0 < ns-233-mobiwan-1.patch in ns-233-mobiwan folder
6. Rename ns-233-mobiwan/ back to ns-2.33
7. cd ns-2.33 && ./configure && make clean && make
After these instruction a new folder named ns-2.33-mobiwan is created in ns-2.3 and contains all .CC, .h and .tcl file .
Now When I run my simple script .. It works
When I try to run a mobiwan script such as simple-mipv6.tcl (which is located on /ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/mobiwan#) . I got the error like Post #28.
Can you help me plz
Is there a step that I missed ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.