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 all, a great thanks for all people here, who are spending time to help us , really its amazing ...
well , i have patched ns2.35 with ke liu's method , also i create a binary ns for only ns2.35 , i modify the file wireless-gpsr.tcl like in post #17 , but when i run wireless-gpsr.tcl an error appear like this :
Code:
num_nodes is set 100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
(_o29 cmd line 1)
invoked from within
"_o29 cmd addr 0"
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 "_o29" line 2)
(SplitObject unknown line 2)
invoked from within
"$ragent addr $addr"
(procedure "create-gpsr-routing-agent" line 15)
invoked from within
"create-gpsr-routing-agent $node $id"
(procedure "gpsr-create-mobile-node" line 41)
invoked from within
"gpsr-create-mobile-node $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
gpsr-create-mobile-node $i
$node_($i) namattach $namfile
}"
(file "wireless-gpsr.tcl" line 264)
also i patched n2.33 according to the hls method , i create a binary ns only for ns2.33 , but when i run hls.tcl ; the follwing text appear in the terminal , and no nam tool opened :
Code:
num_nodes is set 40
Configuring Nodes (40)
INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
radiorange 250, x 2000 y 2000
length : 3.000000 , cellperline 12 , heigth 3.000000
maxlevel 3
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
***********************************************
*** (9): reply from (25) received (ts 8.190946) ****
***********************************************
***********************************************
*** (27): reply from (25) received (ts 11.085541) ****
***********************************************
***********************************************
*** (8): reply from (22) received (ts 11.586938) ****
***********************************************
***********************************************
*** (27): reply from (38) received (ts 19.198864) ****
***********************************************
***********************************************
*** (6): reply from (8) received (ts 20.845395) ****
***********************************************
***********************************************
*** (10): reply from (30) received (ts 22.118559) ****
***********************************************
***********************************************
*** (9): reply from (16) received (ts 23.104682) ****
***********************************************
***********************************************
*** (29): reply from (15) received (ts 30.210070) ****
***********************************************
***********************************************
*** (3): reply from (14) received (ts 31.346165) ****
***********************************************
***********************************************
*** (2): reply from (14) received (ts 32.053201) ****
***********************************************
***********************************************
*** (9): reply from (6) received (ts 33.803389) ****
***********************************************
***********************************************
*** (16): reply from (0) received (ts 35.017762) ****
***********************************************
***********************************************
*** (32): reply from (16) received (ts 35.998127) ****
***********************************************
***********************************************
*** (11): reply from (35) received (ts 39.701234) ****
***********************************************
NS EXITING... hls_test.tr
if any one have an idea about that , plz help me , thanks in advance
@knudfl: please tell me if what you post in post #23 is available to my case , i mean ubuntu 11.04, and when i tape gcc -v , it return me gcc 4.5.2 , so i have this version , can i apply what you post in #23 ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 93 :
First thing to do : Install "gpsr-hls-2.33-ubuntu10_i386.deb", post #69.
If you want to try building it yourself (there is really no reason to do that),
then install the gcc41-compat / g++41-compat compilers for Ubuntu 11.04:
Please read the the answer to you yesterday, post # 9 here .. http://www.linuxquestions.org/questi...04-a-921068/#9
Checking all compilers with the 'which' command :
$ which gcc-4.4
$ which g++-4.4
$ which gcc41
$ which g++41
And with "gcc -v" :
$ g++41 -v
$ g++-4.4 -v
.... etc. etc.
Install command, ref. #23 : For 11.04 it is ..
cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch
&& tar xvf hls-files-ns233.tar.gz && cd ../
&& export CC=gcc41 CXX=g++41 && ./install
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 95 : None of the links in post #95 are valid. Are "half a copy" of a link.
The files hls-files-ns233.tar.gz are to make sure that all files in
ns-2.33/gpsr/ etc. are present.
The patch command behaves strange on some versions of Ubuntu,
resulting in several missing files.
Link https://docs.google.com/file/d/0B7S2...it?usp=sharing
Quote:
in the two cases where should i place those two folders
Just do the commands ..
Code:
cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz && cd ../ && export CC=gcc41 CXX=g++41 && ./install
thank you for your reply , i do the command , it generate to me that :
Code:
patching file common/agent.h
Hunk #1 succeeded at 78 with fuzz 2 (offset 24 lines).
Hunk #2 succeeded at 185 with fuzz 2 (offset 78 lines).
patching file common/ip.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file common/mobilenode.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/gpsr/gpsr.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/gpsr/gpsr.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/gpsr/gpsr.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/gpsr/gpsr.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/cellbuilder.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/cellbuilder.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/.directory,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/.directory
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/hls_advanced.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/hls_advanced.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/hls_basic.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/hls_basic.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/hls_basic.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/hls_basic.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/hls.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/hls.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/hls.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/hls.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/position.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/position.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/quadratic.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/quadratic.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/quadratic.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/quadratic.h
patching file ../ns-2.33-hls_working/ns-2.33/hls/README_HLS
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/cp-n100-c400-15-98.tcl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/cp-n100-c400-15-98.tcl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/cp-n40-a40-t40-c4-m0,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/cp-n40-a40-t40-c4-m0
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/evaluate.pl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/evaluate.pl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/evFromdirectory.pl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/evFromdirectory.pl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/gls_evaluate.pl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/gls_evaluate.pl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/hls.tcl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/hls.tcl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/README.txt,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/README.txt
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/runfromdirectory.pl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/runfromdirectory.pl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/run_small.bat,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/run_small.bat
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/run.tcl,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/run.tcl
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/sc-x2000-y2000-n100-s30-t100-MRD,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/sc-x2000-y2000-n100-s30-t100-MRD
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/sc-x2000-y2000-n40-s25-t40,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/sc-x2000-y2000-n40-s25-t40
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/hls/utils/test_parameter.txt,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/hls/utils/test_parameter.txt
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/chc_caches.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/chc_caches.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/chc.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/chc.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/chc.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/chc.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/gridlocservice.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/gridlocservice.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/gridlocservice.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/gridlocservice.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/.#gridlocservice.h.1.4,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/.#gridlocservice.h.1.4
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/hdr_locs.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/hdr_locs.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/hdr_locs.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/hdr_locs.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/locservice.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/locservice.h
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/.#locservice.h.1.4,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/.#locservice.h.1.4
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/ls_queued_timer.cc,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/ls_queued_timer.cc
The next patch would create the file ../ns-2.33-hls_working/ns-2.33/locservices/ls_queued_timer.h,
which already exists! Assume -R? [n] y
patching file ../ns-2.33-hls_working/ns-2.33/locservices/ls_queued_timer.h
patching file ../ns-2.33-hls_working/ns-2.33/locservices/ls_timer_heap.h
patching file ../ns-2.33-hls_working/ns-2.33/locservices/omnilocservice.cc
patching file ../ns-2.33-hls_working/ns-2.33/locservices/omnilocservice.h
patching file ../ns-2.33-hls_working/ns-2.33/locservices/realocservice.cc
patching file ../ns-2.33-hls_working/ns-2.33/locservices/realocservice.h
patching file mac/mac-802_11.cc
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file mac/mac-802_11.h
patching file mac/mac.h
patching file Makefile.in
patching file ../ns-2.33-hls_working/ns-2.33/mobile/geo_util.cc
patching file ../ns-2.33-hls_working/ns-2.33/mobile/geo_util.h
patching file mobile/god.cc
patching file mobile/god.h
patching file queue/priqueue.cc
patching file queue/priqueue.h
patching file tcl/lib/ns-default.tcl
patching file tcl/lib/ns-lib.tcl
patching file tcl/lib/ns-mobilenode.tcl
patching file tcl/lib/ns-packet.tcl
patching file ../ns-2.33-hls_working/ns-2.33/tcl/mobility/gpsr.tcl
patching file trace/cmu-trace.cc
Hunk #1 succeeded at 102 with fuzz 2 (offset 42 lines).
Hunk #2 FAILED at 609.
Hunk #3 succeeded at 1055 with fuzz 2 (offset 105 lines).
Hunk #4 FAILED at 1536.
2 out of 4 hunks FAILED -- saving rejects to file trace/cmu-trace.cc.rej
patching file trace/cmu-trace.h
and when i tape just : cd ns-allinone-2.33 && export CC=gcc41 CXX=g++41 && ./install
an error appear :
Alloc.c:29:
/usr/include/bits/socket.h:381:24: erreur: asm/socket.h : Aucun fichier ou dossier de ce type
make: *** [tclAlloc.o] Erreur 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
i dont know where is the problem , some one can help me ?
Alloc.c:29:
/usr/include/bits/socket.h:381:24: erreur: asm/socket.h : Aucun fichier ou dossier de ce type
make: *** [tclAlloc.o] Erreur 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
hi i install ns2.33 and i want patch it with hls patch , i install first "gpsr-hls-2.33-ubuntu10_i386.deb" and it work i have ns-hls binary code in usr/local/bin , i download also the files "ns2.33-hls-patch.tar.gz" from the offcial site :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.