LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Closed Thread
 
Search this Thread
Old 01-29-2013, 03:48 AM   #91
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602

# 90

And you are sure that /usr/local/bin/ns is the "GPSR Keliu ns" executable.


By the way, did you get the 4.7 MB .deb package installed ? And tested.
→ gpsr-keliu-ns-2.34-ubuntu10_i386.deb → /usr/local/bin/ns-gpsr-k


-

Last edited by knudfl; 01-29-2013 at 03:56 AM.
 
Old 02-13-2013, 07:32 PM   #92
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
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
 
Old 02-14-2013, 08:40 AM   #93
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled

@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 ?

really i need help and thank you in advance
 
Old 02-14-2013, 09:01 AM   #94
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 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


-

Last edited by knudfl; 02-14-2013 at 09:06 AM.
 
Old 02-14-2013, 10:33 AM   #95
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
@ knudfl , i have installed the binary package according to post #3 ,
http://www.linuxquestions.org/questi...-4175446277/#3

and i have ns-hls as binary ns
and i install gcc and g++ according to post #9 , http://www.linuxquestions.org/questi...04-a-921068/#9
and i do the verification ,

the problem is that i'm confused is that what i download from link in #23 this file :

https://docs.google.com/open?id=0B7S...alV2SGhJdk1hQQ

replace the original file of hls patch " ns2-hls-patch" that i downloaded from here :

http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch

or just it complete it ,and in the two cases where should i place those two folder , i hope that you excuse my confusion and help me .
 
Old 02-14-2013, 11:20 AM   #96
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 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
... and everything will be in the right place.

-
 
Old 02-14-2013, 11:29 AM   #97
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
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
is there an error or its OK ?
 
Old 02-14-2013, 01:21 PM   #98
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
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 ?
 
Old 02-14-2013, 01:26 PM   #99
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 97

About $ patch -p1 < ns-2.33-hls.patch :
$ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch

Looks like you applied the patch in the wrong location.
Or did it twice in different locations ?
This is the expected result :
Code:
[knudfl@localhost ns-2.33]$ patch -p1 < ns-2.33-hls.patch
patching file common/agent.h
patching file common/ip.h
patching file common/mobilenode.h
patching file common/packet.h
patching file gpsr/gpsr.cc
patching file gpsr/gpsr.h
patching file hls/cellbuilder.h
patching file hls/.directory
patching file hls/hls_advanced.cc
patching file hls/hls_basic.cc
patching file hls/hls_basic.h
patching file hls/hls.cc
patching file hls/hls.h
patching file hls/position.h
patching file hls/quadratic.cc
patching file hls/quadratic.h
patching file hls/README_HLS
patching file hls/utils/cp-n100-c400-15-98.tcl
patching file hls/utils/cp-n40-a40-t40-c4-m0
patching file hls/utils/evaluate.pl
patching file hls/utils/evFromdirectory.pl
patching file hls/utils/gls_evaluate.pl
patching file hls/utils/hls.tcl
patching file hls/utils/README.txt
patching file hls/utils/runfromdirectory.pl
patching file hls/utils/run_small.bat
patching file hls/utils/run.tcl
patching file hls/utils/sc-x2000-y2000-n100-s30-t100-MRD
patching file hls/utils/sc-x2000-y2000-n40-s25-t40
patching file hls/utils/test_parameter.txt
patching file locservices/chc_caches.cc
patching file locservices/chc.cc
patching file locservices/chc.h
patching file locservices/gridlocservice.cc
patching file locservices/gridlocservice.h
patching file locservices/.#gridlocservice.h.1.4
patching file locservices/hdr_locs.cc
patching file locservices/hdr_locs.h
patching file locservices/locservice.h
patching file locservices/.#locservice.h.1.4
patching file locservices/ls_queued_timer.cc
patching file locservices/ls_queued_timer.h
patching file locservices/ls_timer_heap.h
patching file locservices/omnilocservice.cc
patching file locservices/omnilocservice.h
patching file locservices/realocservice.cc
patching file locservices/realocservice.h
patching file mac/mac-802_11.cc
patching file mac/mac-802_11.h
patching file mac/mac.h
patching file Makefile.in
patching file mobile/geo_util.cc
patching file 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 tcl/mobility/gpsr.tcl
patching file trace/cmu-trace.cc
patching file trace/cmu-trace.h
.. Or did you apply the patch to an ns-2.33 that was patched with the GPSR-KeLiu patch ?
Then better setup a new ns-allinone-2.33 for gpsr-hls.

-

Last edited by knudfl; 02-14-2013 at 03:23 PM.
 
Old 02-14-2013, 02:03 PM   #100
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
i have placed manually the files :

ns-2.33-hls.Makefile.patch and
ns-2.33-hls.patch and
ns-2.33-hls-patch.sh

in home/manel/ns-allinone-2.33/ns-2.33

( that's recommanded in the read me file that i found when i uncompressed the file ns2.33-hls-patch.tar.gz)

and when i patch ns2.33 in the first time a folder named "ns-2.33-hls_working" was created in

home/manel/ns-allinone-2.33

do i have a mistake in that , plz tell me and thankx in advance
 
Old 02-14-2013, 03:04 PM   #101
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 98 :

Later / updated versions of Ubuntu 11.04 have no link /usr/include/asm

Can be fixed with : 1) cd /usr/include/
2) sudo ln -s i386-linux-gnu/asm/
 
Old 02-14-2013, 04:05 PM   #102
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 100 : README.txt : April 08, 2009.
No Ubuntu 11.04 four years ago.
( The patch alone works for one old versions of Ubuntu.)

This works for Ubuntu 11.04
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
 
Old 02-14-2013, 05:15 PM   #103
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
i ecrase the old folder of ns2.33 and i uncompress a new one and i put it in home/manel

gcc41 and g++41 is already installed
but when i try to install it according to this post :
http://www.linuxquestions.org/questi...04-a-921068/#9

an error appear like this :

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

this is the first time that i see this error

what you advice me to do and thanks
 
Old 02-15-2013, 04:53 AM   #104
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
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 :

http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch

and i extract it , also i download another file named "hls-files-ns233.tar.gz" recommanded in this post :#23 here :

http://www.linuxquestions.org/questi...ml#post4625437

(i just download it , and i dont extract it)

the two files in home/downloads/

so i hope that i install the right files ,

and when i try to patch my ns-allinone-2.33 according to post #94 here

http://www.linuxquestions.org/questi...526/page7.html

i just enter the first line (step by step) , this command

cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch

an error appear like this :

"bash: ns-2.33-hls.patch: no file or folder in that type "

that mean that my only problem here is the location of folders , can some one tell me where i put each one of the folders that i mention before

cause "ns-2.33-hls.patch" which is a file from the folder home/downloads/ns2-hls-patch so its normally its'nt in the file ns-allinone-2.33/ns-2.33

should i place the file "ns-2.33-hls.patch" in "ns-allinone-2.33/ns-2.33 or there is another suggestion ?

thanks in advance





 
Old 02-15-2013, 05:16 AM   #105
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
# 104
Quote:
should i place the file "ns-2.33-hls.patch" in "ns-allinone-2.33/ns-2.33
Yes, of course :

copy ns-2.33-hls.patch and hls-files-ns233.tar.gz to ns-allinone-2.33/ns-2.33/


-
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 01:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 06:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 04:24 AM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration