seeking advice to install 802.11e patch in ns2
Hi,
This is Chithra. My research is based on 802.11e protocol. I use ns2.34 on ubuntu 10.04 (gcc-4.3) version. I am looking for 802.11e patch. I couldn't find any patch file for ns2.34. so i tried installing the patch from he following links. http://www.tkn.tu-berlin.de/research/802.11e_ns2/ http://www.telematica.polito.it/casetti/802.11e/ that also went in vain. either tcl or tclcl make getting failed. is this problem due to gcc version or ubuntu? What should i do now? I have been searching for solution since long time. Kindly help me friends. your help is highly appreciated.. Thanks in advance. |
Welcome to LQ.
Your first link is about ns-2.28 : No problems having more than one version of ns-allinone-2.xx present in /home/<user-name>/<ns2-dir>/ More info, LQ Search → Keyword = ns-allinone Example http://www.linuxquestions.org/questi...failed-732164/ > > Posts #10 #11. The second link is a patch for ns-allinone-2.1b9a, also used for some other patches. The version ns-allinone-2.1b9a-gcc32.tar.gz will work. The possible issues are with the very old patch. .. |
Hello, Thanks for you quick reply..
I tried to execute the command from the root as mentioned. i have got the following message.. root@ubuntu:~/ns-allinone-2.28# yum install compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool Setting up Install Process No package compat-gcc-34-c++ available. No package libX11-devel available. No package libXext-devel available. No package libXau-devel available. No package libXmu-devel available. No package xorg-x11-proto-devel available. No package gcc-c++ available. No package make available. No package automake available. No package autoconf available. No package libtool available. Nothing to do >>Kindly help me how to resolve this issue. Am i missing something? Do let me know.. Thanks in Advance.. |
# 15
Quote:
And the Fedora package names cannot be used. https://help.ubuntu.com/community/InstallingSoftware If you had followed the link http://www.linuxquestions.org/questi...failed-732164/ ... then you will see, it points to http://www.linuxquestions.org/questi...10-a-782356/#3 sudo apt-get install g++ automake autoconf libtool \ libx11-dev libxmu-dev libxmu-headers libxt-dev Adding 'hardy' to /etc/apt/sources.list, post #5 here http://www.linuxquestions.org/questi...10-a-867404/#5 Then you can do : sudo apt-get install g++-3.4 : required for ns-2.28. The install command : 'export CC=gcc-3.4 CXX=g++-3.4 && ./install' ... should work on Ubuntu. Quote:
The build location is /home/<name>/<ns2-folder>/ns-allinone-2.28/ ... So all commands can be done as 'unpriviliged user'. ... |
Hi,
Thank you very much for your clarification. I have made the required changes as u mentioned, except the following: Add 'hardy' to /etc/apt/sources.list Code: deb http://76.73.4.58/ubuntu/ hardy-updates main deb http://76.73.4.58/ubuntu/ hardy universe deb http://security.ubuntu.com/ubuntu hardy-security main deb http://security.ubuntu.com/ubuntu hardy-security universe I don't know in which place i have to add this.. because i couldn't find the path "/etc/apt/sources.list" anywhere.. Kindly guide me.. |
Adding 'hardy' to /etc/apt/sources.list : sources.list is a text file.
In a terminal window do : sudo gedit /etc/apt/sou<TAB> <ENTER> .. and bash completion will bring you to sources.list and display it in gedit. Then you can copy / paste the four lines to be added .. .. |
Thanks for your patience for clarifying my doubts.
After performing the above mentioned steps, it throws the following error when i try to install: checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. KIndly let me know how can i resolve this issue. Thank you.. |
OK, then to the build instructions for ns-allinone-2.28 on Ubuntu :
http://www.linuxquestions.org/questi...led-732164/#10 > > post # 10 And like Fedora, you may get a slightly better result with 'ns228-gcc40.patch'. That's post # 11. But I don't remember. .. |
facing problem in installing gcc++-3.3 on ns2.27 (Ubuntu 9.10)
Hello,
I have been trying to use ns2.27 (on ubuntu 9.10) to work on hcca patch for my research. I am following post#4 for the installation. and am encountering problem when i try to install the gcc++-3.3 package. Firstly, i tried : sudo apt-get install g++-3.3 i got the following msg, chithra@ubuntu:~/ns-allinone-2.27$ sudo apt-get install g++-3.3 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package g++-3.3 Secondly, i executed the following command in the terminal sudo dpkg -i \ cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \ gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \ libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb i got the following error, chithra@ubuntu:~/ns-allinone-2.27$ sudo dpkg -i \ cpp-3.3_3.3.6-15ubuntu4_i386.deb g++-3.3_3.3.6-15ubuntu4_i386.deb \ gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb \ libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.debdpkg: error processing cpp-3.3_3.3.6-15ubuntu4_i386.deb (--install): cannot access archive: No such file or directory (Reading database ... 119314 files and directories currently installed.) Preparing to replace g++-3.3 1:3.3.6-15ubuntu4 (using g++-3.3_3.3.6-15ubuntu4_i386.deb) ... Unpacking replacement g++-3.3 ... dpkg: error processing gcc-3.3_3.3.6-15ubuntu4_i386.deb (--install): cannot access archive: No such file or directory dpkg: error processing gcc-3.3-base_3.3.6-15ubuntu4_i386.deb (--install): cannot access archive: No such file or directory dpkg: error processing libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb (--install): cannot access archive: No such file or directory dpkg: dependency problems prevent configuration of g++-3.3: g++-3.3 depends on gcc-3.3 (= 1:3.3.6-15ubuntu4); however: Package gcc-3.3 is not installed. g++-3.3 depends on gcc-3.3-base (= 1:3.3.6-15ubuntu4); however: Package gcc-3.3-base is not installed. g++-3.3 depends on libstdc++5-3.3-dev (= 1:3.3.6-15ubuntu4); however: Package libstdc++5-3.3-dev is not installed. dpkg: error processing g++-3.3 (--install): dependency problems - leaving unconfigured Processing triggers for man-db ... Errors were encountered while processing: cpp-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3_3.3.6-15ubuntu4_i386.deb gcc-3.3-base_3.3.6-15ubuntu4_i386.deb libstdc++5-3.3-dev_3.3.6-15ubuntu4_i386.deb g++-3.3 Either way I couldn't install the g++-3.3 package. Can you please tell me where am going wrong?? Kindly assist me to rectify this. Looking forward for your inputs. Thanks! |
Ubuntu 9.10 Karmic has been unsupported for some time.
Some repositories can still be used. But to be sure, you can change the URL in /etc/apt/sources.list to the "old archive" ( All 'karmic' lines ) : http://old-releases.ubuntu.com/ubuntu/ About gcc-3.3, g++-3.3 : Probably remove what's installed, and then use packages from hardy-updates only: All 5 packages. ( http://packages.ubuntu.com/hardy-updates/g++-3.3 ) .. |
Hello,
Thank you so much for your timely reply! Now I have completed till this step, ln -s ../tcl8.4.18/generic/tclInt.h ln -s ../tcl8.4.18/generic/tclIntDecls.h (followed post#3 in this http://www.linuxquestions.org/questi...10-a-782356/#3) And I have downloaded the following patches "tk-8.4-lastevent.patch" & "otcl-113-configure.in.patch" in ns-allinone-2.27 folder for now.You have mentioned "Apply the tk-8.4-lastevent.patch in tk8.4.14." in that post, but i couldn't locate tk8.4.14 anywhere in the ns-allinone-2.27 folder. And also I just wanna make sure whether following are the only steps left out before i run ./install?? for tk => cp tk-8.4-lastevent.patch ns-allinone-2.27/tk8.4.18/ cd ns-allinone-2.27/tk8.4.18/ patch -p0 < tk-8.4-lastevent.patch for otcl =>patch -p1 < otcl-113-configure.in.patch If am missing something, please assist me.. LOoking forward for your reply! Once again thanks for your time and consideration :) Thank you! |
Quote:
http://www.linuxquestions.org/questi...10-a-782356/#3 And by the way, Ubuntu 9.10 is not required. Ubuntu 10.04 (10.10) will also make a perfect result. . |
Thanks for your support!
So do you mean that, I can install ns2.27 on ubuntu 10.04 / 10.10 would go well? And if yes, should i follow the same instructions in this link http://www.linuxquestions.org/questi...10-a-782356/#3 ? also, can i do the hcca patch on ubuntu 10.04 version? will there be any compatibility issues? Kindly let me know your suggestions! Thanks :) |
Quote:
( 10.10 : Requires manual install of the g++-3.3 / gcc-3.3 packages. From hardy-updates.) Remark : Should be a 32bitsOS for best result. Ns2 is not made to work fully on a 64bits OS. ( Ubuntu 11.04 : Difficult to use. 11.10 : Not usable.) .. |
Hello,
As you mentioned in the previous post, I tried installing ns2.27 on ubuntu10.04 version. I followed the same instructions (http://www.linuxquestions.org/questi...10-a-782356/#3). In that link, I presume that I have installed g++-3.3 and the other steps correctly. Am trying to apply the below patches. Following are the response at the terminal: >Apply the tk-8.4-lastevent.patch in tk8.4.14. >Apply the otcl-113-configure.in.patch in otcl-1.13. (it says HUNK failed at this point) chithra@ubuntu:~/ns-allinone-2.27/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch.txt The program 'patch' is currently not installed. You can install it by typing: sudo apt-get install patch chithra@ubuntu:~/ns-allinone-2.27/tk8.4.18$ sudo apt-get install patch Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-2.6.32-33-generic linux-headers-2.6.32-33 Use 'apt-get autoremove' to remove them. Suggested packages: diffutils-doc The following NEW packages will be installed: patch 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 123kB of archives. After this operation, 254kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1 [123kB] Fetched 123kB in 1s (70.7kB/s) Selecting previously deselected package patch. (Reading database ... 149021 files and directories currently installed.) Unpacking patch (from .../patch_2.6-2ubuntu1_i386.deb) ... Processing triggers for man-db ... Setting up patch (2.6-2ubuntu1) ... chithra@ubuntu:~/ns-allinone-2.27/tk8.4.18$ cd .. chithra@ubuntu:~/ns-allinone-2.27$ patch -p1 < otcl-113-configure.in.patch.txt bash: otcl-113-configure.in.patch.txt: No such file or directory chithra@ubuntu:~/ns-allinone-2.27$ cd .. chithra@ubuntu:~$ patch -p1 < otcl-113-configure.in.patch.txt patching file configure.in Hunk #1 FAILED at 74. 1 out of 1 hunk FAILED -- saving rejects to file configure.in.rej I couldn't make it out from the response i get. Can you please tell me how to resolve this issue? Thanks for your constant support and patience. Thanks! |
The patches are not that important. Any behavior of '1 hunk FAILED' is OK.
Patching is mostly concerning the separate application 'nam'. Any nam from any ns-allinone-2.xx can be used. 'nam' should be installed to /usr/local/bin/. You can use a binary nam : nam-1.14.i586.tar.gz https://docs.google.com/uc?id=0B7S25...nload&hl=en_US Unpack, and : sudo cp nam /usr/local/bin/ .. |
Thanks a lot for your reply!
In a previous you have mentioned that, // ( 10.10 : Requires manual install of the g++-3.3 / gcc-3.3 packages. From hardy-updates.) Does it mean that I don't have to do install g++-3.3 / gcc-3.3 manually on 10.04 version? To my knowledge, 10.04 version uses the newer version of gcc right? Kindly clarify my doubt. Thank you so much for your consistent support! |
Hi,
Adding to my previous post.. when i try to install g++-3.3 package, i get the following chithra@ubuntu:~/ns-allinone-2.27$ sudo apt-get install g++-3.3Reading package lists... Done Building dependency tree Reading state information... Done g++-3.3 is already the newest version. You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: g++-3.3: Depends: gcc-3.3 (= 1:3.3.6-15ubuntu4) but it is not installable Depends: gcc-3.3-base (= 1:3.3.6-15ubuntu4) but it is not installable Depends: libstdc++5-3.3-dev (= 1:3.3.6-15ubuntu4) but it is not installable E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). it says 'unmet dependencis'. may i know what does it mean? is g++-3.3 installed already? Kindly let me know how can I resolve it.. Thank you! |
# 18. .... .... See post # 10.
http://packages.ubuntu.com/hardy-updates/g++-3.3 Manual install means : sudo dpkg -i \ cpp-3.3_3.3.6-15ubuntu6_i386.deb gcc-3.3-base_3.3.6-15ubuntu6_i386.deb \ gcc-3.3_3.3.6-15ubuntu6_i386.deb g++-3.3_3.3.6-15ubuntu6_i386.deb \ libstdc++5-3.3-dev_3.3.6-15ubuntu6_i386.deb libstdc++5_3.3.6-15ubuntu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb http://se.archive.ubuntu.com/ubuntu/...untu6_i386.deb .. |
Hello,
With your guidance, I have installed ns2.27 on ubuntu10.04 successfully. HOwever, I get the following message. >Please compile your xgraph separately. >Please compile your gt-itm & sgb2ns separately. [1]How can i compile the xgraph, gt-itm & sgb2ns spearately? [2]And my main aim is to patch the hcca on ns2.27 I follow this link for hcca patch: http://cng1.iet.unipi.it/wiki/index.php/Ns2hcca But patching is not successful yet. I encountered the following message, chithra@ubuntu:~/ns-allinone-2.27$ gzip -dc ns2hcca-2.27-060823.patch.gz | patch -Np1 patching file mac/Doxyfile patching file mac/hccasched/mac-hccasched.cc patching file mac/hccasched/mac-hccasched.h patching file mac/hccasched/mac-hccasched_map.cc patching file mac/hccasched/mac-hccasched_map.h patching file mac/hccasched/mac-hccasched_map_ref.cc patching file mac/hccasched/mac-hccasched_map_ref.h patching file mac/hccasched/mac-hccasched_oneflow.cc patching file mac/hccasched/mac-hccasched_oneflow.h patching file mac/hccasched/mac-hccasched_par.cc patching file mac/hccasched/mac-hccasched_par.h patching file mac/hccasched/mac-hccasched_periodic.cc patching file mac/hccasched/mac-hccasched_periodic.h patching file mac/ll.cc Hunk #1 FAILED at 34. Hunk #2 FAILED at 44. Hunk #3 FAILED at 67. Hunk #4 FAILED at 224. Hunk #5 FAILED at 241. 5 out of 5 hunks FAILED -- saving rejects to file mac/ll.cc.rej patching file mac/ll.h Hunk #1 FAILED at 36. Hunk #2 FAILED at 46. Hunk #3 FAILED at 113. 3 out of 3 hunks FAILED -- saving rejects to file mac/ll.h.rej patching file mac/mac-802_11.cc Hunk #1 FAILED at 36. Hunk #2 FAILED at 160. Hunk #3 FAILED at 283. Hunk #4 FAILED at 378. Hunk #5 FAILED at 453. Hunk #6 FAILED at 715. Hunk #7 FAILED at 772. Hunk #8 FAILED at 810. Hunk #9 FAILED at 885. Hunk #10 FAILED at 1066. Hunk #11 FAILED at 1164. Hunk #12 FAILED at 1436. Hunk #13 FAILED at 1506. Hunk #14 FAILED at 1612. Hunk #15 FAILED at 1700. Hunk #16 FAILED at 1728. Hunk #17 FAILED at 2169. Hunk #18 FAILED at 2188. Hunk #19 FAILED at 2216. Hunk #20 FAILED at 2228. 20 out of 20 hunks FAILED -- saving rejects to file mac/mac-802_11.cc.rej patching file mac/mac-802_11.h Hunk #1 FAILED at 37. Hunk #2 FAILED at 46. Hunk #3 FAILED at 63. Hunk #4 FAILED at 88. Hunk #5 FAILED at 152. Hunk #6 FAILED at 212. Hunk #7 FAILED at 232. Hunk #8 FAILED at 244. Hunk #9 FAILED at 261. Hunk #10 FAILED at 341. Hunk #11 FAILED at 351. Hunk #12 FAILED at 363. Hunk #13 FAILED at 399. Hunk #14 FAILED at 450. Hunk #15 FAILED at 512. Hunk #16 FAILED at 568. Hunk #17 FAILED at 578. 17 out of 17 hunks FAILED -- saving rejects to file mac/mac-802_11.h.rej patching file mac/mac-802_11e.cc patching file mac/mac-802_11e.h patching file mac/mac-classifier.cc patching file mac/mac-classifier.h patching file mac/mac-timers.cc Hunk #1 FAILED at 33. Hunk #2 FAILED at 46. Hunk #3 FAILED at 68. Hunk #4 FAILED at 85. Hunk #5 FAILED at 123. Hunk #6 FAILED at 219. Hunk #7 FAILED at 249. Hunk #8 FAILED at 299. Hunk #9 FAILED at 324. 9 out of 9 hunks FAILED -- saving rejects to file mac/mac-timers.cc.rej patching file mac/mac-timers.h Hunk #1 FAILED at 33. Hunk #2 FAILED at 40. Hunk #3 FAILED at 138. 3 out of 3 hunks FAILED -- saving rejects to file mac/mac-timers.h.rej patching file common/packet.h Hunk #1 FAILED at 47. Hunk #2 FAILED at 54. Hunk #3 FAILED at 472. Hunk #4 FAILED at 538. 4 out of 4 hunks FAILED -- saving rejects to file common/packet.h.rej patching file common/simulator.cc Hunk #1 FAILED at 21. Hunk #2 FAILED at 33. Hunk #3 FAILED at 65. 3 out of 3 hunks FAILED -- saving rejects to file common/simulator.cc.rej patching file common/simulator.h Hunk #1 FAILED at 25. Hunk #2 FAILED at 47. Hunk #3 FAILED at 55. 3 out of 3 hunks FAILED -- saving rejects to file common/simulator.h.rej patching file common/stat.cc patching file common/stat.h patching file common/statconf.h patching file noah/noah.cc patching file noah/noah.h patching file tcl/ex/hcca/analyze.pl patching file tcl/ex/hcca/example.tcl patching file tcl/ex/hcca/header patching file tcl/lib/ns-agent.tcl Hunk #1 FAILED at 192. 1 out of 1 hunk FAILED -- saving rejects to file tcl/lib/ns-agent.tcl.rej patching file tcl/lib/ns-lib.tcl Hunk #1 FAILED at 193. Hunk #2 FAILED at 604. Hunk #3 FAILED at 766. Hunk #4 FAILED at 2194. 4 out of 4 hunks FAILED -- saving rejects to file tcl/lib/ns-lib.tcl.rej patching file tcl/lib/ns-mobilenode.tcl Hunk #1 FAILED at 451. Hunk #2 FAILED at 468. Hunk #3 FAILED at 622. 3 out of 3 hunks FAILED -- saving rejects to file tcl/lib/ns-mobilenode.tcl.rej patching file tcl/mobility/noah.tcl patching file tools/e2em.h patching file tools/e2em.cc patching file tools/e2et.h patching file tools/e2et.cc patching file tools/timestamper.cc patching file tools/rng.cc Hunk #1 FAILED at 34. Hunk #2 FAILED at 68. Hunk #3 FAILED at 258. Hunk #4 FAILED at 278. Hunk #5 FAILED at 461. Hunk #6 FAILED at 801. 6 out of 6 hunks FAILED -- saving rejects to file tools/rng.cc.rej patching file Makefile.in Hunk #1 FAILED at 57. Hunk #2 FAILED at 69. Hunk #3 FAILED at 147. Hunk #4 FAILED at 293. Hunk #5 FAILED at 348. 5 out of 5 hunks FAILED -- saving rejects to file Makefile.in.rej patching file tcl/lib/ns-default.tcl Hunk #1 FAILED at 438. Hunk #2 FAILED at 467. Hunk #3 FAILED at 606. Hunk #4 FAILED at 1270. 4 out of 4 hunks FAILED -- saving rejects to file tcl/lib/ns-default.tcl.rej Can you please kindly help me out how to resolve this issue?? KIndly let me know your suggestion. Thanks for your consistent support! |
Xgraph : sudo apt-get install xgraph
'gt-itm' and 'sgb2ns' : Never seen anybody use those. HCCA : Probably use ns-allinone-2.29.3.tar.gz : cd ns-allinone-2.29/ns-2.29/ && wget http://cng1.iet.unipi.it/archive/ns2...60823.patch.gz && zcat ns2hcca-2.29-060823.patch.gz | patch -p1 → → No errors. ( You can have as many versions of ns-allinone-2.xx as you want installed at the same time. Preferably in /home/<name>/ns2*, not /usr/local/ ! ) . |
Hi,
I am trying to install ns2.29 as per your advice. I use, CC = gcc-3.3 CXX = g++-3.3 in the makefile. when i run "./install" at the terminal i get the following error(excerpt), /ns-allinone-2.29/otcl-1.11 -I/home/chithra/ns-allinone-2.29/include -I/home/chithra/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o common/ptypes2tcl.o common/ptypes2tcl.cc gcc-3.3 -E -o common/ptypes2tcl common/ptypes2tcl.o gcc-3.3: common/ptypes2tcl.o: linker input file unused because linking not done ./common/ptypes2tcl > gen/ptypes.cc /bin/sh: ./common/ptypes2tcl: not found make: *** [gen/ptypes.cc] Error 127 Ns make failed! is it due to the problem with gcc compiler version?? KIndly tell me how can i resolve it?? Thanks. |
Hello,
With your constant support, I able to install ns2.29 (especially for hcca patch) on ubuntu 10.04 successfully. I encountered numerous errors while installing. But i able to debug it with the help of following link: http://sertel.upc.es/~maguilar/fiche...eNS2_David.txt after the debugging, installation was smooth. NOw am trying to understand the hcca architecture & its code. I hope this would help someone who is working on the same. Thanks! |
Hi,
After installing hcca patch, i was trying to run the simple.tcl (to verify if everything works fine) from ns-allinone-2.29/ns-2.29/tcl/ex/simple.tcl chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex$ ns simple.tcl 210 0.0037499999999999999 running nam... chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex$ nam: [code omitted because of length] : no event type or button # or keysym while executing "bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D / 120) * 4}] units }" invoked from within "if {[string equal [tk windowingsystem] "classic"] || [string equal [tk windowingsystem] "aqua"]} { bind Listbox <MouseWheel> { %W yview scroll [expr {..." I am getting the above error. Does it mean nam is not installed properly?? Kindly please let me know how can I rectify this issue.. THanks for your time! |
# 24.
Use a binary nam. See post # 16. ( And delete the corrupt nam that causes the errors.) |
Hi thanks for your reply!
May I know what gcc version should I use ? |
hi,
now i can compile the nam and patched the hcca patch also. but when i run the example.tcl file, i get the following message, chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex/hcca$ ns example.tcl Wed Oct 26 16:53:53 PDT 2011 trace descr: file3 (_o4 cmd line 1) invoked from within "_o4 cmd run-identifier 1" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o4" line 2) (SplitObject unknown line 2) invoked from within "$ns run-identifier $opt(run)" (procedure "open_traces" line 13) invoked from within "open_traces" (procedure "init" line 7) invoked from within "init" (file "example.tcl" line 87) i couldn't make it out what the error is.. :( How can I resolve this issue? kindly let me know.. thanks |
./ns example.tcl : The "ns" from "ns-2.29 HCCA" must be used.
The result you get, looks like ns version 2.34 is used. I get this Code:
Thu Oct 27 02:24:33 CDT 2011 trace descr: file3 |
Hi,
Yeah, as you said i was trying to run it using ns2.34 version. Now its working fine. My actual work is to increase the no. of stations and modify certain parameters and simulate the NAM and xgraph (to calculate the throughput and delay characteristics)for the same.. in the current example.tcl (hcca folder), it doesn't have anything like NAM/ Xgraph.. So how and where can I introduce those functions?? PLease let me know how can i proceed... I appreciate your constant support! THanks |
Hello,
May I know how can I analyze example.trc using the perl script called analyze.pl? What is the exact purpose of the analyze.pl script?? I tried executing it on the terminal. It says permission denied! chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex/hcca$ ./analyze.pl < example.trc bash: ./analyze.pl: Permission denied PLease let me know what am missing here and how can i analyze the trace.. I really need your help. Kindly let me know... Looking forward for your reply Thank you. |
# 30.
The command is : 'perl analyze.pl < example.trc' If you want to do './analyze.pl < example.trc' , then change "analyze.pl" to be executable : chmod +x analyze.pl . |
hello,
I am trying to run the simple-wireless.tcl script. But I couldn't execute it. I get the following warnings. chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex$ ns simple-wireless.tcl num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl warning: no class variable Mac/802_11::MaxSDUSize_ see tcl-object.tcl in tclcl for info about this warning. (_o19 cmd line 1) invoked from within "_o19 cmd ll _o21" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o19" line 2) (SplitObject unknown line 2) invoked from within "$mac ll $ll" (procedure "_o14" line 97) (Node/MobileNode add-interface line 97) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 73) (Simulator create-wireless-node line 73) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "simple-wireless.tcl" line 93) How can I rectify it?? Can you please kindly let me know how to resolve this issue?? THank you |
Post #15.
To use a patch : The patch should be present or pointed to. cd ns-allinone-2.27/tcl8.4.18/ && wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch && patch -p0 < tk-8.4-lastevent.patch && cd ../ && ./install Quote:
. |
hi,
i tried this patch and got the expected message (1 out 0f 1 hunk failed). ran ./install at the terminal again. Still i couldn't run the simple-wireless tcl program. i get the same error. Can you please tell me how can i solve it further? thank you. |
"ns-allinone-2.29/ns-2.29/tcl/ex/simple-wireless.tcl" is a program
for the default 'ns' without the HCCA patch. "simple-wireless.tcl" will not work with "ns-hcca". Suggest : Run a new './install' on a clean ns-allinone-2.29, and copy ns to /usr/local/bin/ You can also have a copy of the "ns hcca" in /usr/local/bin/, with your own naming like ns-hcca or ns229-hcca. I have up to 10 different ns-allinone-2.xx on each OS. Example 'ns' binaries in /usr/local/bin/ : Code:
ls /usr/local/bin/ns* |
Thank you so much for the clarification.
i have been trying to understand the example.trc file of hcca patch(to claculate the throughput and delay). This trace looks very very different from the usual wireless trace file.. s -t 0.000000000 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 1 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0 r -t 0.000000000 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 1 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0 s -t 0.000000000 -Hs 1 -Hd 0 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 21 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0 Can you please help me how can i interpret it ??? have been looking for the solution very long time.. am not able to sort it out... Kindly give me your inputs.. looking forward for your reply.. Thank you so much for your time.. |
Hi,
My name is Kristina, and i have installed ns 2.31 on Fedora 7 and now i am working on qos in wlan. I have been trying to install a patch for 802.11e, but unsuccessful :( Can anybody give me some instruction what modifications should i make on ns 2 code to work it successful? Thank You very very much, and happy holidays. BR, Kristina (kristina_pelivanoska@yahoo.com) |
Post # 37, @kikistr1 / Kristina : Welcome to LQ.
Which patch is it about ? A direct download link, please. And : Are you sure the patch is for ns-2.31 ? . |
This is the download link http://sourceforge.net/projects/ieee80211e-ns2/
It is not for ns 2.31, i have made the changes from the readme file, i run again my simulation and i got a segmentation fault message. I do not what to do now. Can You help me with this? Or if You now a better patch give me a link to install it. Regards, Kristina |
#39
The patch EDCA_ns-2_28-v1-0-2 : Please use ns-allinone-2.28. (You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. Just do not add any of them to a PATH*.) ns-allinone-2.28 : Please use the patch ns228-gcc40.patch, post #11 here http://www.linuxquestions.org/questi...led-732164/#11 And : cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install .. |
Ok, Thank You for Your time.
Now i will try to install ns 2.28. Will it work on Fedora 7? BR, Kristina |
#41, @kikistr1 / Kristina
Should work with all Fedora versions. Most versions have been tested OK with ns-2.28 . # yum install compat-gcc-34-c++ : Then you'll have the gcc34, g++34 compilers. |
Quote:
since now i have faced a lot problems , errors ..., could you tell me which version of gcc have you used ? |
Post # 43, @ rexx : Welcome to LQ.
Ubuntu 10.04 - 32, that's 'gcc / g++' version 4.1.2 for ns-2.29.3 : sudo apt-get install g++-4.1 cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && install . |
thank you for your help ;)
on my ubuntu version was installed gcc 4.4.3, i downloaded g++' version 4.1.2, and installed it , there were some mistakes But i was able to debug it with the help of following link: http://sertel.upc.es/~maguilar/fiche...eNS2_David.txt |
# 45
The valid link for "http://sertel.upc.es/~maguilar/ficheros/InstallationGuideNS2_David.txt" is http://sertel.upc.es/~maguilar/fiche...eNS2_David.txt |
Quote:
|
# 47
Ref. post # 28 Quote:
Looks like you by mistake are using a binary ns from ns-2.34. The right version is the "ns hcca" binary from ns-2.29/. Note : You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But : Do not add any of them to a *PATH. . |
1 Attachment(s)
Hi every body, my Thesis is based on "analysis of QoS services provisioning in IEEE 802.11e HCCA wireless networks"
The work covers the simulation analysis of QoS provisioning (throughput, mean frame delay, percentage of lost frames etc.) in IEEE 802.11 wireless networks based on HCCA function. So I have already installed NS2 and patch hcca function , every think work perfectly ,now I am seeking for help on writing a script which will help me to simulate the following topology: Please see attachement |
All times are GMT -5. The time now is 10:41 AM. |