LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-15-2013, 06:31 AM   #106
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled

i do what you recommend in post #104

and also the command from post #94
http://www.linuxquestions.org/questi...526/page7.html

but the install failed and this 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 followed the instruction from post # 98 :
and i tape :

cd /usr/include/
sudo ln -s i386-linux-gnu/asm/

nothing appear on the terminal .
and when i remake the patch and the ./install

the same error appear

@knudfl : you mention in your post # 98, that i should update my version of ubuntu 11.04 to another version , i want to ask how (if it necessary according to my case )

and is that mean that i will repeat the installation of ns2.33 and ns2.35 and the patch or not ? , all things will be there in the new version ?

thanks in advance





 
Old 02-15-2013, 07:34 AM   #107
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 106
Quote:
you mention in your post # 98,
that i should update my version of ubuntu 11.04 to another version
Not post # 98, but # 101 :
It's about the different update levels for Ubuntu 11.04 .
I.e. the package linux-libc-dev has made changes in the original file structure.

May be an updated version of gcc41-compat (for later Ubuntu's) will work.
I will check, and come back with an answer.

-
 
1 members found this post helpful.
Old 02-15-2013, 11:27 AM   #108
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 107

Please do $ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb
Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing

It's the gcc41-compat, with the hidden locations / files
linked into the gcc search paths inside gcc41.
Tested : Works perfectly on the 32bits Ubuntu 11.04 .


-

Last edited by knudfl; 02-15-2013 at 03:44 PM.
 
1 members found this post helpful.
Old 02-15-2013, 02:11 PM   #109
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
@knudfl: i made what you suggest for me , and its was installed with success thanks , but when i execute

ns-hls hls.tcl

no nam opened and the terminal look like what i get in post #92

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


pleaz help me , i really don't know what i do
 
Old 02-15-2013, 03:03 PM   #110
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 109

(You are supposed to have one nam in /usr/local/bin/ for all versions of ns2.
https://docs.google.com/file/d/0B7S2...it?usp=sharing
tar xvf nam-1.14.i586.tar.gz && cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/)


Quote:
no nam opened and the terminal look like what i get in post #92
$ ns-hls hls.tcl : Works OK here : Creates "hls_test.tr".
There is no nam file for this example.

The examples ssoumayaa*.tcl will create like fangzhen1.nam, fangzhen1.tr .
Please see elsewhere in the gpsr-hls thread(s),
and /usr/local/lib/gpsr-hls/ns-allinone-2.33/hls-utils/, for all examples.

-
 
1 members found this post helpful.
Old 02-16-2013, 02:18 AM   #111
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
thanks for your reply , i try what you recommend to me in the end of post #109

so i run the example ssoumayaa.tcl and it work , i run also the nam file " fangzhen1.nam" with the command

nam fangzhen1.nam

and it work , in that case ,it's necessary to install the nam file that you post in #109 ? or not ?

https://docs.google.com/file/d/0B7S2...it?usp=sharing

and what about the file "hls.tcl" how can i see its simulation ?, cause , there is no nam file created when i run it with :

ns-hls hls.tcl


and another question , when i tape ns-hls hls.tcl or ns-hls ssoumayaa.tcl an error message appear

"couldn't open "fangzhen1.tr": permission denied
while executing
"open fangzhen1.tr w"
invoked from within
"set tracefd [open fangzhen1.tr w] "
(file "ssoumayaa.tcl" line 119)"


but when i run it as i'm super user with this command " sudo -u root xterm"

it work fine as i said in the begin , so how can i run it as i'm a simple user not root ?

thanks a lot for all your help



 
Old 02-16-2013, 02:35 AM   #112
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 111 : One nam will do. Anywhere. If nam works, no need to install another.

$ ns-hls hls.tcl : Creates 'hls_test.tr'.

The folder /usr/local/lib/gpsr-hls/ns-allinone-2.33/hls-utils/* :
has wrong permissions. Can be changed with : $ sudo chmod 0755 hls-utils/*

-
 
1 members found this post helpful.
Old 02-16-2013, 05:31 AM   #113
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
hi again , i want to ask if there is a scenario (file.tcl) in all folders that we add work fine and the nam appear , (expect ssoumayaa.tcl )

if it was please tell me where ?

and thanks in advance ..
 
Old 02-16-2013, 05:54 AM   #114
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
when i run the file wireless-gpsr.tcl from the kliu patch , an error appear :
"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 44)
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)"



normally this file generate nam interface ,or a file.nam

i'm wondering if it's a problem in my gpsr-hls patch or the problem from this file( "gpsr-wireless.tcl") please help me , what you

recommend to do ?


 
1 members found this post helpful.
Old 02-16-2013, 06:01 AM   #115
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 113 .

'ssoumayaa.tcl', line 120 :
set nf [open fangzhen1.nam w] ;# trace and nam file
line 122 :
$ns_ namtrace-all-wireless $nf 2000 500 ;# mobily topo x&y

'ssoumayaa-0.tcl', line 81 :
set nf [open fangzhen1.nam w] ;# trace and nam file
Line 83
$ns_ namtrace-all-wireless $nf 2000 500 ;# mobily topo x&y


.. A scenario file is not generally required for nam to open.
( It's not the scenario file that starts nam.)
*** Please read ( and use ) all the basic examples ..
http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html >
http://www.isi.edu/nsnam/ns/tutorial...pt1.html#first > example1a.tcl >
> http://www.isi.edu/nsnam/ns/tutorial.../example1a.tcl

http://www.isi.edu/nsnam/ns/tutorial...t1.html#second > 1b >
> http://www.isi.edu/nsnam/ns/tutorial.../example1b.tcl

http://www.isi.edu/nsnam/ns/tutorial...pt1.html#third > 1a >
> http://www.isi.edu/nsnam/ns/tutorial.../example1a.tcl
.. etc. etc.

-
 
Old 02-16-2013, 06:06 AM   #116
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 114 .
Quote:
when i run the file wireless-gpsr.tcl from the kliu patch
Please be more clear : run is not a command.
The command that was used must be shown !

'wireless-gpsr.tcl' is for the Ke-Liu patched ns2 only :
$ ns-gpsr-k wireless-gpsr.tcl

-
 
Old 02-16-2013, 06:18 AM   #117
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
@knudfl , thanks for your reply , i know that not necessary that when we excute a tcl file a nam opened , and for the links that you post in post #115 there are about fixed nodes and i want to see some mobiles nodes with gpsr protocol( just for test , even with two nodes )

and for post #116

i mean by run that i excute it with my new binary ns : ns-hls (that support gpsr protocol) and i did this command:

ns-hls wireless-gpsr.tcl

its not possible to run wireless-gpsr with the ns-hls ?
 
Old 02-16-2013, 06:34 AM   #118
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 117

Quote:
its not possible to run wireless-gpsr with the ns-hls ?
Sorry, but no. You will have to use $ ns-gpsr-k wireless-gpsr.tcl

And neither can the "ns-gpsr-keliu" executable be used with the hls examples.

-
 
1 members found this post helpful.
Old 02-16-2013, 07:55 AM   #119
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
ok , but is there a patch to have the "ns-gpsr-keliu" executable , ?

in order to execute the file wireless-gpsr.tcl ..
 
Old 02-16-2013, 08:29 AM   #120
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
is that what you post in post #89 here

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

is availble for ns2-33 or ns2-35 ?



 
  


Closed Thread

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration