LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-02-2014, 01:46 AM   #16
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy LTE problem installtion ..Please knudlf.


Dear knudlf,
I followed your instructions in post #11...
1- I am started from point C L

because I'm already installed NS-2.34 on ubuntu
Time to update the build instructions / making the build easier :
a) $ tar xvf ns-allinone-2.33.tar.gz
b) $ cd ns-allinone-2.33/
started from here:
c) $ tar xvf lte-ns233-patching-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
d) $ export CC=gcc41 CXX=g++41 && ./install
e) $ cd ns-2.33/
f) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin/
.... And you can do $ ns-lte eyana.tcl
from lte-examples-0213.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing

I got the following below ...
[root@localhost lte-ex]# ns-lte eyana.tcl
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 24)
2- then I've extracted lte-ns-2.33-ubuntu10_i386.deb and repeat the steps
d) $ export CC=gcc41 CXX=g++41 && ./install
e) $ cd ns-2.33/
f) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin/
I have got the following
cd lte-model-read-only/
[root@localhost lte-model-read-only]# ./test
Deleting the old log files ...
rm: cannot remove `*.log': No such file or directory
rm: cannot remove `*.txt': No such file or directory
rm: cannot remove `out.*': 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

awk: delay.awk:33: fatal: division by zero attempted

0 1 2 3 total
0 0 0 0 0

check the out.txt out.tr out.nam for detailed information
 
Old 04-02-2014, 02:40 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 16 , @engihab : Welcome to LQ.
Quote:
2- then I've extracted lte-ns-2.33-ubuntu10_i386.deb
Don't. This is an "Ubuntu package.deb", a binary package.
Click / or double click, and install with "Package Installer",
or use $ dpkg :
? Have you forgotten that you installed gcc41 / g++41 with :
$ sudo dpkg -i <package>.deb <package>.deb
... You can do the same with "lte-ns" →
$ sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb


Quote:
[root@localhost lte-ex]# ns-lte eyana.tcl
.
[root@localhost lte-model-read-only]# ./test
You are not supposed to use root in Ubuntu.
And definitely never with an ns2 command.
The "$" is the user command prompt. So $ ns-lte eyana.tcl
.. means that you are "not using root".
The only "adminstrative command" you can do in ns-2.33 is :
$ sudo make install


Quote:
invalid command name "Queue/LTEQueue/ULAirQueue"
Don't know how you made a failed build.

-

Last edited by knudfl; 04-02-2014 at 03:41 AM.
 
Old 04-02-2014, 11:39 AM   #18
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
LTE in ns233 problem installtion ..Please knudlf.

Dear Knudfl,
I am used ubuntu 10.04.3 LTS i686, I've been installed ns2.33 with the gcc-4.3.
Now
1- I am confused install "lte-ns-2.33-ubuntu10_i386.deb"
Or " lte-ns233-patching-2.tar.gz".
2- I am installed NS2.33 already am I should execute again
a) $ tar xvf ns-allinone-2.33.tar.gz ?
b) $ cd ns-allinone-2.33/?
3- am I should remove gcc-4.3 and install gcc41 or what??
Thank you indeed regarding your help .
 
Old 04-02-2014, 12:10 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 18 .

1. "lte-ns-2.33-ubuntu10_i386.deb" is a complete simulator ns2+LTE,
that you can use independently of the ns2 that you may build yourself.

1. "lte-ns233-patching-2.tar.gz" is for building you own ns2+LTE.


Quote:
2- I am installed NS2.33 already am I should execute again
a) $ tar xvf ns-allinone-2.33.tar.gz ?
b) $ cd ns-allinone-2.33/ ?
This is how to do :
a) $ tar xvf ns-allinone-2.33.tar.gz
b) cd ns-allinone-2.33/
c) tar xvf lte-ns233-patching-2.tar.gz
d) ./install : May work .... if you are lucky.
.. But gcc-4.3 / g++-4.3 haven't worked well with ns2 for 3 years.
.. The current "10.04 way" is : $ export CC=gcc-4.1 CXX=g++-4.1 && ./install
.. when you have done $ sudo apt-get install g++-4.1

3. ""should I remove gcc-4.3 and install gcc41 or what??""
* No. You can have as many versions of gcc/g++ as you want, at the same time.
* Think Ubuntu 12.04 : You have gcc41, gcc-4.4, -4.5, -4.6 at the same time.

-

Last edited by knudfl; 04-02-2014 at 12:13 PM.
 
Old 04-03-2014, 03:12 AM   #20
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy LTE installation problem in ns2

Dear Knudfl,
I've followed your instructions

Quote:
b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns233-patching-2.tar.gz
d) $ sudo apt-get install gcc++-4.1
e) $ export CC=gcc41 CXX=g++41 && ./install
f) $ cd ns-2.33/
g) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin
I've faced the problem as below kindly ...
ihab@ihab-laptop:~/ns-allinone-2.33/ns-2.33/lte-ex$ ns-lte eyana.tcl
Code:
warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

ihab@ihab-laptop:~/ns-allinone-2.33/ns-2.33/lte-ex$ nam: 
[code omitted because of length]
: no event type or button # or keysym
    while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
    invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."

Last edited by engihab; 04-03-2014 at 06:26 AM.
 
Old 04-03-2014, 03:35 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 20 .
Quote:
e) $ export CC=gcc41 CXX=g++41 && ./install
Not the command for Ubuntu 10.04 : Read post #19 :
$ export CC=gcc-4.1 CXX=g++-4.1 && ./install


""$ ns-lte eyana.tcl"" :
The warnings can be ignored.


"nam" : Install nam-1.14.i586.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
$ cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

-
 
Old 04-03-2014, 03:40 AM   #22
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy LTE installation problem in ns2

Dear Knudfl,
May you please give me the link for post #19 I can not found it!
regarding nam problem I've first install nam package...
 
Old 04-03-2014, 03:52 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 22 .

This one is #23 . #19 is four posts back. Is an answer to you : Yesterday.

When you get no link reference, the post is in this very thread.
 
Old 04-03-2014, 04:46 AM   #24
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy LTE installation problem in ns2

Dear Knudfl,
I'am already followed your flow :
d) ./install : May work .... if you are lucky.
.. But gcc-4.3 / g++-4.3 haven't worked well with ns2 for 3 years.
.. The current "10.04 way" is : $ export CC=gcc-4.1 CXX=g++-4.1 && ./install
.. when you have done $ sudo apt-get install g++-4.1
but I got the same problem as I've been mentioned you in my post.
 
Old 04-03-2014, 05:09 AM   #25
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Unhappy LTE installation problem in ns2

Dear Knudfl,
I've installed NAM kindly this is what I've got after execution

ihab@ihab-laptop:~/ns-allinone-2.33/ns-2.33/lte-ex$ ns-lte eyana.tcl
Code:
warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Session/RTP::debug_

	see tcl-object.tcl in tclcl for info about this warning.

Last edited by engihab; 04-03-2014 at 06:18 AM.
 
Old 04-03-2014, 05:48 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 25 .

Please read post #21 : "The warnings can be ignored."


And : Please don't show that much text, when it's the same lines that are repeated.

And : Error output, etc. must be in code tags :
That's the # button in the 'Advanced Editor' .
* http://www.linuxquestions.org/questi....php?do=bbcode
* http://www.linuxquestions.org/questi...gs-4175464257/
You can also do the 'code tags' this way :
Type [/code] at error text end, and [code] at text start.
*** Please edit your posts : The 'Edit' button.

-
 
Old 04-03-2014, 08:56 AM   #27
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Exclamation LTE installation problem in ns2

Dear Knudfl,
I've Followed your instructions:
Quote:
ihab@ihab-laptop:~/ns-allinone-2.33/ns-2.33/lte-ex$ ""ns-lte eyana.tcl""
But same Error problems I got>>> post #24
TQ.

Last edited by engihab; 04-03-2014 at 10:00 AM.
 
Old 04-03-2014, 09:38 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 27 .
Quote:
But same Error problems I got.
Which errors ?

Please tell which post you refer to.
 
Old 04-03-2014, 10:02 AM   #29
engihab
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
LTE installation problem in ns2

Quote:
Originally Posted by knudfl View Post
# 27 .

Which errors ?

Please tell which post you refer to.
Please follow post #24 ...
 
Old 08-05-2015, 10:11 AM   #30
imen
LQ Newbie
 
Registered: Aug 2015
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by Dhikra View Post
Hello,
I do all steps in this link.
But I have this error now:
ns:
[code omitted because of length]
: invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set drop_front_ 0"

Thank you
Please help me I have the same problem with ubuntu 14.04
 
  


Reply

Tags
lte, lte#11, ns2



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
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
install lte $ wimax in ns-2 maouhoub Linux - Newbie 15 03-26-2011 12:11 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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