LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Install LTE package on ns-2.35 (https://www.linuxquestions.org/questions/ubuntu-63/install-lte-package-on-ns-2-35-a-933953/)

engihab 04-02-2014 01:46 AM

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

knudfl 04-02-2014 02:40 AM

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.

-

engihab 04-02-2014 11:39 AM

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 .

knudfl 04-02-2014 12:10 PM

# 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.

-

engihab 04-03-2014 03:12 AM

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..."


knudfl 04-03-2014 03:35 AM

# 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/

-

engihab 04-03-2014 03:40 AM

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...

knudfl 04-03-2014 03:52 AM

# 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.

engihab 04-03-2014 04:46 AM

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.

engihab 04-03-2014 05:09 AM

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.


knudfl 04-03-2014 05:48 AM

# 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.

-

engihab 04-03-2014 08:56 AM

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.

knudfl 04-03-2014 09:38 AM

# 27 .
Quote:

But same Error problems I got.
Which errors ?

Please tell which post you refer to.

engihab 04-03-2014 10:02 AM

LTE installation problem in ns2
 
Quote:

Originally Posted by knudfl (Post 5145945)
# 27 .

Which errors ?

Please tell which post you refer to.

Please follow post #24 ...

imen 08-05-2015 10:11 AM

Quote:

Originally Posted by Dhikra (Post 4631019)
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


All times are GMT -5. The time now is 01:18 AM.