LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 05-15-2012, 08:57 AM   #31
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled

1. gcc41-compat set....both ...using....sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb
.. Then reboot, and the new compilers can be used.

2. patching done!! using patch -p0 < ns-2.26-gcc410.patch

3. root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26#export CC=gcc41 CXX=g++41 && ./install......
and again error..

checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for opendir... (cached) yes
checking union wait... yes
checking matherr support... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
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.



tcl failed..y??help
 
Old 05-15-2012, 09:29 AM   #32
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
Quote:
./configure: 1: Syntax error: Unterminated quoted string
That's an error which will appear, when no 'ns-2.26-gcc410.patch' is used.

The patch should be applied in /usr/local/ ,
i.e. outside the "ns-allinone-2.26/" folder.


.

Last edited by knudfl; 05-15-2012 at 09:33 AM.
 
1 members found this post helpful.
Old 05-15-2012, 10:14 AM   #33
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
thanks @knudfl........ns2.26 installed on ubuntu 10.10..... :-).....now trying Drand and z-mac installlation....lets see...thanks again...
 
Old 05-15-2012, 11:11 AM   #34
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
now while installing DRAND and Z-MAC...from..

1.http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm
and
2.http://www4.ncsu.edu/~rhee/export/zm...rand/drand.htm


follwing the instructions on this page....

from 1. ns2 installation instructions done...
from 2. ns2 installation instructions done..and while executing the simulation for ns2 execution instructions on 2. i.e simulating simple-wireless.tcl as...
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/drandTcl# ns simple-wireless.tcl 6 new-scen-6-60-60
num_nodes is set 6
INITIALIZE THE LIST xListHead
invalid command name "Agent/DRAND"
while executing
"Agent/DRAND create _o111 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/DRAND"
("for" body line 2)
invoked from within
"for { set i 0} { $i < $numNodes } { incr i} {
set drand($i) [new Agent/DRAND]
$drand($i) set randomSeed_ [ns-random]
$ns_ attach-agent $no..."
(file "simple-wireless.tcl" line 38)
.....got again the same error..as for ns2.34......help me sort out this....
 
Old 05-15-2012, 11:14 AM   #35
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
also tell me before running tcl script simple-wireless.tcl....i have to agin make ns2.26 or insatll ns??????or just run the script...


error..agin goes to #1...........no use working whole day...
 
Old 05-15-2012, 11:16 AM   #36
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
what is scenario.tcl file in $ns simple-wireless.tcl <numnodes> <scenario.tcl>
....is it the file created from ./setdest i.e new-scen-N-X-Y..???
help needed!!
 
Old 05-15-2012, 11:20 AM   #37
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
# 34
Quote:
ns simple-wireless.tcl
Sorry, not possible with the "ns-drand" binary, to run an "ns 2.26 simple-wireless.tcl"
To run default files : Set up a third version of ns-allinone-2.26,
and copy the binary ns to ns226.
'ns226 simple-wireless.tcl' should then work.

Be aware that you also need separate ns-allinone-2.26 installs
for DRAND and ZMAC. ( A zmac ns-2.26 cannot run DRAND stuff. AFAIK.)

.

Last edited by knudfl; 05-15-2012 at 11:40 AM.
 
Old 05-15-2012, 11:32 AM   #38
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
Sorry, not possible with the "ns-drand" binary

...what is ns-drand binary???

To run default files : Set up a third version of ns-allinone-2.26,
and copy the binary ns to ns226.
.....how to create the third version.???...i dnt know even to craete 1st nd 2nd versions...how???

meanwhile....ns with the drand instructions followed...instlled correctlyyyy...and i have also saved the previous version of ns without instructions....that was also installed correctly...

then y this error showing???
 
Old 05-15-2012, 11:34 AM   #39
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
y this tcl script is not running???
 
Old 05-15-2012, 11:38 AM   #40
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
# 36
Quote:
What is scenario.tcl file in $ns simple-wireless.tcl <numnodes> <scenario.tcl>
First : I'd guess, that the special simple-wireless.tcl from drandTcl.tar.gz
is to be used. (It is not ns-2.26/tcl/ex/simple-wireless.tcl ).
http://www4.ncsu.edu/~rhee/export/zm...randTcl.tar.gz

"scenario.tcl" : I don't know. Just try out, what you have.
(There is a "wirelessOpt.tcl" in drandTcl.tar.gz ).
 
Old 05-15-2012, 11:45 AM   #41
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
... And please spell out your words. Write why, not y when you mean 'why',
etc etc. Short hand writing / SMS language is not accepted here at LQ.

Please edit your posts to be readable. Please edit spell errors.
 
Old 05-15-2012, 12:53 PM   #42
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
yess....your guess is right..it is from the drandTCL.tar.gz....
..
..

i m getting the error post #34.....
 
Old 05-15-2012, 01:08 PM   #43
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
..the same error with some other file is there...i searched it....

http://my.opera.com/HenryFD/blog/show.dml/192233

...they told to make..them make install...........and others as....make clean then make depend then make and then make install....
also suggested to add variables...
..
in..ns2.26/tcl/lib...with reference to .cc files..i.e drandAgent.cc in our case....
how this is done???

Thanks for checking above and help me out also...
Thanks again!!
 
Old 05-15-2012, 01:10 PM   #44
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
also consider my post #38
 
Old 05-15-2012, 02:17 PM   #45
arica
Member
 
Registered: May 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
nothing working again.....i dnt know whats the problem....same error post #1..spend my whole day on it...
 
  


Reply

Tags
drand, g++41-compat, ns2, zmac



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
NS2 S-MAC Sleep Time Query ulyssues.fam Linux - Newbie 1 11-24-2012 04:18 PM
NS2 S-MAC Protocol Sleep Time Query ulyssues.fam Linux - Newbie 0 04-14-2012 09:01 AM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
Need help in NS2 installation maneshmotts Ubuntu 5 09-10-2011 05:47 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM

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

All times are GMT -5. The time now is 09:17 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