LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-09-2012, 12:03 PM   #46
newnsuser
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled

I want to install LTE Module, I am using Ns2.33 in ubuntu 10.04
I have followed very well the step of posts #2 and #4 and i have got a successful make command.
However while executing ./test I have got the same problem:

start testing, please wait ...
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 17)


Please help me!!
 
Old 08-12-2012, 12:14 AM   #47
deVacto
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by newnsuser View Post
I want to install LTE Module, I am using Ns2.33 in ubuntu 10.04
I have followed very well the step of posts #2 and #4 and i have got a successful make command.
However while executing ./test I have got the same problem:

start testing, please wait ...
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 17)


Please help me!!
hi all
i already try some of post here like #2 and #4 and some other and i`m in same situation with i quote here

i think no matter what line its it will invalid in "Queue/LTEQueue"
i use ubuntu 11.04 NS2.33
what is the problem here any solution, please help
im nearly desparate
thx
 
Old 08-15-2012, 05:49 AM   #48
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 47, @deVacto : Welcome to LQ.

How did you manage to install ns-allinone-2.33 in Ubuntu 11.04 ?
Which compiler ( g++ ) was used ?
Quote:
I already try some of post here like #2 and #4 and some other
"Some other" : Please specify the other changes, please.

.
 
Old 08-15-2012, 11:52 AM   #49
deVacto
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
thx for reply #48
i edit some file with help some web to make ns2.33 run in ubuntu, and it works. should explained how it all?
i already have 4.3, 4.4 and default 4.5 but only 4.4 i can ./install ns2.33
is it lte should run with gcc4.3? how to make i can install ns in my ubuntu with smoothly?

Quote:
Originally Posted by knudfl View Post
"Some other" : Please specify the other changes, please.
.
i try change the lte.tcl but the eror still

Last edited by deVacto; 08-15-2012 at 11:53 AM.
 
Old 08-15-2012, 12:07 PM   #50
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 49 : The best compiler for Ubuntu 11.04 / ns-2.33 is gcc/g++ 4.1.2.
g++-4.4 will probably not create a perfect result.


gcc41-compat-4.1.2, g++41-compat-4.1.2 were created for Ubuntu 11.04.
Post # 14 here
http://www.linuxquestions.org/questi...4-a-944856/#14

.

Last edited by knudfl; 08-15-2012 at 12:09 PM.
 
Old 08-17-2012, 06:02 AM   #51
deVacto
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
tq @knudfl

after ./install i got message

gcc41: couldn't run 'i386-linux-gnu-gcc-4.1': No such file or directory
make: *** [regcomp.o] Error 1
tcl8.4.18 make failed! Exiting ...

i search where gcc is,i found it in /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu
there, i see all gcc i already installed but there is not 4.1.2
gcc4.1 i found it in /usr/gcc41 instead

is already installed or how to make it installed/link like the other?
 
Old 08-17-2012, 06:18 AM   #52
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 51 : Did you do reboot ?

The gcc41-compat includes /etc/profile.d/ gcc41.csh gcc41.sh
.. which will set the PATH at boot time.

And : There is no 'i386-linux-gnu-gcc-4.1'.
Code:
ls /usr/gcc41/bin/
c++41  g++41     gcov41                i386-linux-gnu-gcc41
cc41   gcc41     i386-linux-gnu-c++41  i386-linux-gnu-gcc41-4.1.2
cpp41  gccbug41  i386-linux-gnu-g++41
 
Old 08-17-2012, 09:31 AM   #53
deVacto
LQ Newbie
 
Registered: Aug 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 51 : Did you do reboot ?

The gcc41-compat includes /etc/profile.d/ gcc41.csh gcc41.sh
.. which will set the PATH at boot time.

And : There is no 'i386-linux-gnu-gcc-4.1'.
Code:
ls /usr/gcc41/bin/
c++41  g++41     gcov41                i386-linux-gnu-gcc41
cc41   gcc41     i386-linux-gnu-c++41  i386-linux-gnu-gcc41-4.1.2
cpp41  gccbug41  i386-linux-gnu-g++41
hmm, after reboot i got

gcc: error trying to exec 'i686-linux-gnu-gcc-4.1': execvp: No such file or directory
rm -f libtclstub8.4.a
ar cr libtclstub8.4.a tclStubLib.o ; ranlib libtclstub8.4.a
ar: tclStubLib.o: No such file or directory
ranlib: 'libtclstub8.4.a': No such file
make: *** [libtclstub8.4.a] Error 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

Last edited by deVacto; 08-17-2012 at 09:38 AM.
 
Old 08-19-2012, 08:45 AM   #54
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 51, # 53

It is very strange that tcl can ask for non existing files.
1) gcc41: couldn't run 'i386-linux-gnu-gcc-4.1
2) gcc: error trying to exec 'i686-linux-gnu-gcc-4.1':

Could it be a corrupt ns-allinone-2.33.tar.gz ?
http://sourceforge.net/projects/nsna...ar.gz/download
Or a corrupt download of the compiler packages ?
I tried with a new ns-allinone-2.33 in Ubuntu 11.04.
And removed 'gcc41-compat', g++41-compat',
downloaded new packages from the links, and installed them :
sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb

cd ns-allinone-2.33/ && export CC=gcc41 CXX=g++41 && ./install : No errors.

.

Last edited by knudfl; 08-19-2012 at 08:49 AM.
 
Old 09-03-2012, 05:02 AM   #55
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
lte in ns2.33

Hi...
I am doing my M.tech Project on lte, i am installing lte on ns2.33 but when i am running test file i am getting this problem. Please help me by solving my this problem.



tauseef@tauseef-Vostro-1450:~/ns-allinone-2.33/ns-2.33/lte-model-read-only$ ./test
Deleting the old log files ...
rm: cannot remove `*.log': No such file or directory
Done
start testing, please wait ...
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "lte.tcl" line 17)
Done
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0 1 2 3 total(Mbyte)
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00

0 1 2 3 total
-nan -nan -nan -nan -nan

0 1 2 3 total
0 0 0 0 0

check the out.txt out.tr out.nam for detailed information.






how to solve this problem???
 
Old 09-05-2012, 12:45 PM   #56
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 55, @tauseef ahmad : Welcome to LQ.
Quote:
how to solve this problem ???
I don't see any errors. Looks OK.


rm: cannot remove `*.log': No such file or directory :
That's the reply, when there is nothing to remove.

.
 
Old 09-06-2012, 07:58 AM   #57
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post # 55, @tauseef ahmad : Welcome to LQ.

I don't see any errors. Looks OK.


rm: cannot remove `*.log': No such file or directory :
That's the reply, when there is nothing to remove.

.
thanks for replying...
but when i checked out.txt out.tr out.nam files for detailed information there is nothing in out.txt out.tr out.nam files.., Why its like this??
 
Old 09-13-2012, 10:42 AM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 55
Quote:
invalid command name "Queue/LTEQueue"
Looks like your build went wrong.

Post # 57 : Please see the test result in post # 10. ( Debian Lenny.)
I got no out.nam . The file out.tr is 1.1 MB.
EDIT : See post #59.
'awk -f thouughput.awk out.tr' works.
'awk -f jitter.awk out.tr' doesn't.


An LTE simulation that works : ns eyana.tcl
The file eyana.tcl.txt is attached to post # 5 here ..
http://www.linuxquestions.org/questi...2-33-a-936417/


.

Last edited by knudfl; 09-13-2012 at 02:02 PM.
 
Old 09-13-2012, 01:47 PM   #59
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 57.
A new test result ( Ubuntu 10.10.)
Files created : out.txt 143 kB, out.tr 1.1 MB
And here both throughput.awk and jitter.awk work OK.
Code:
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0	1	2	3	total(Mbyte)
0.04	0.03	0.00	1.20	1.27
0.01	0.00	0.00	0.05	0.05
0.00	0.00	0.00	0.00	0.00

0		 1		 2		 3		 total
0.00414595 	 0.00206283 	 0.002032 	 0.00275309 	 0.00273915

0		 1		 2		 3		 total
6.42316e-05 	 0.000182658 	 inf 	 0.00037799 	 0.000355072
If you want a file 'out.nam' :
Remove the hash marks ( # ) that uncomment lines 10-11 in lte.tcl
... And out.nam 2.6 MB is created with ./test

$ nam out.nam : The simulation is displayed in nam. ( Push the play button.)

.

Last edited by knudfl; 09-13-2012 at 02:01 PM.
 
Old 09-19-2012, 11:03 PM   #60
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
lte patch

Dear knudfl..thanks for replying
I tried to simulate eyana.tcl file on my ns-2.33, but i got following error message

invalid command name "Queue/LTEQueue/ULAirQueue"
while executing
"Queue/LTEQueue/ULAirQueue create _o101 "
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 Queue/$qtype"
("default" arm line 3)
invoked from within
"switch -exact $qtype {
ErrorModule {
if { [llength $args] > 0 } {
set q [eval new $qtype $args]
} else {
set q [new $qtype Fid]
}
}
intserv {
set qtyp..."
(procedure "_o3" line 14)
(Simulator simplex-link line 14)
invoked from within
"$ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue"
("for" body line 2)
invoked from within
"for { set i 0} {$i < $number} {incr i} {
$ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue
$ns simplex-link $eNB $UE($i) 1Gb 2ms LTEQueue/DL..."
(file "eyana.tcl" line 20)


I can not understand why its not recognizing "Queue/LTEQueue/ULAirQueue" command . I think may be may LTE patch is not compiled correctly.
My ubuntu is 11.04( Natty) and i am using ns 2.33.
Please help me, and tell what i can do now...
thanks
 
  


Reply

Tags
lte, lte#122, ns2


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
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 13 04-29-2014 05:17 PM
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 08:26 AM
I cant recompile my patch in ns2 on red hat v5 JawadZaheer Linux - Software 0 12-22-2007 11:31 PM


All times are GMT -5. The time now is 09:25 AM.

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