LinuxQuestions.org
Visit Jeremy's Blog.
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 09-20-2012, 04:27 AM   #61
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

#60 : Like #58, the conclusion is that your build failed.

How to install ns-allinone-2.33 in Ubuntu 11.04 :
cd ns-allinone-2.33/ && export CC=gcc41 CXX=g++41 && ./install

I.e. required : the Ubuntu 11.04 g++41-compat / gcc41-compat compilers
http://www.linuxquestions.org/questi...4-a-944856/#14
> post # 14
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.

Using g++41 for the LTE build : Edit the Makefile, line 37 from :
CPP = g++
to :
CPP = g++41

.
 
Old 09-20-2012, 11:38 PM   #62
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Dear knudfl
Thanks for your reply
I tried to do all the steps that you have tell to follow but finally i messed up all the things and now i am not able to trace the problem so i have removed my LTE patch and i want to install my LTE patch from very beginning . I have installed ns2.33 and its working fine, so please tell me the required steps to install LTE patch. I need to install Lte patch because my M.Tech project is on Lte, so please help me patch Lte to ns2.
 
Old 09-21-2012, 03:04 AM   #63
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 # 62.

Please read post # 2 about LTE.
 
Old 09-21-2012, 04:49 AM   #64
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Dear knudfl
thanks for your reply..
I followed all the steps in Post #2, but when after doing all thing i want to check my ns i got the following error

tauseef@tauseef-Vostro-1450:~/ns-allinone-2.33$ ns
ns:
[code omitted because of length]
: invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set drop_front_ 0"


If there is any thing that i am doing wrong then please tell me
 
Old 09-21-2012, 05:24 AM   #65
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
# 64 : Ubuntu 11.04

cd ns-allinone-2.33/ns-2.33/ && make clean

Then please do the two "symlink commands" described in post #4 :
cd project/
1) ln -s ../lte-model-read-only/*.h .
.... Where the period ( . ) means the current directory.
2) ln -s ../lte-model-read-only/dlqueue.cc

And : cd ../ && make

.
 
Old 09-22-2012, 10:49 AM   #66
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Thanks for your Reply knudfl
Finally my LTE patch is working ... I am very happy .. Thanks a lot your guidance. Now i can work on my project.
 
Old 09-22-2012, 11:09 PM   #67
tauseef ahmad
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
Dear knudfl
Thanks for your all the posts, finally my LTE patch is running, but when i am running
/ns-allinone-2.33/ns-2.33/lte-model-read-only$ command i am getting following following warning. its working properly and generating out.txt out.tr out.nam files. But i want to why its giving this warning.



warning: no class variable Session/RTP::debug_

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

Done
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

check the out.txt out.tr out.nam for detailed information.
 
Old 09-23-2012, 02:26 AM   #68
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
# 67
Quote:
But I want know to why its giving this warning.
I don't know.
But : It can be ignored. A warning is not an error.
( A warning is information only.)
 
Old 10-26-2012, 06:43 PM   #69
joselitomoraes
LQ Newbie
 
Registered: Oct 2012
Location: Belém, Pará, Brasil.
Distribution: Ubuntu 10.04 LTS
Posts: 4

Rep: Reputation: Disabled
I installed lte on ns-2:33 and have The Following problem:

invalid command name "Queue / LTEQueue" while executing "Queue / LTEQueue September qos_ true" (file "lte.tcl" line 17)

Can anyone help me?

Thank you!
 
Old 10-27-2012, 01:25 AM   #70
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 # 69, @ joselitomoraes.
Quote:
invalid command name "Queue / LTEQueue" while executing
"Queue / LTEQueue .. qos_ true" (file "lte.tcl" line 17)
Happens when LTE isn't installed ( correctly ).
( ? Or : Did you edit lte.tcl ? ? ).
Install instructions : See posts #2 and #4

When you have a working "ns - lte" please also give the edited lte.tcl a try
> eyana.tcl > http://www.linuxquestions.org/questi...6&d=1332803695
Ref. http://www.linuxquestions.org/questi...33-a-936417/#5

More questions ? Then your OS must be specified. Name and version, please.

.
 
Old 10-29-2012, 11:34 AM   #71
joselitomoraes
LQ Newbie
 
Registered: Oct 2012
Location: Belém, Pará, Brasil.
Distribution: Ubuntu 10.04 LTS
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post # 69, @ joselitomoraes.

Happens when LTE isn't installed ( correctly ).
( ? Or : Did you edit lte.tcl ? ? ).
Install instructions : See posts #2 and #4

When you have a working "ns - lte" please also give the edited lte.tcl a try
> eyana.tcl > http://www.linuxquestions.org/questi...6&d=1332803695
Ref. http://www.linuxquestions.org/questi...33-a-936417/#5

More questions ? Then your OS must be specified. Name and version, please.

.

I followed diligently post # 2 and # 4.
Below is how I installed.
Even with eyana.tcl file continued error.
My OS is Ubuntu 10.04 LTS
Thank you!



cd /home/joselito

wget http://nchc.dl.sourceforge.net/sourc...ne-2.33.tar.gz

tar -xzvf ns-allinone-2.33.tar.gz
mv ns-allinone-2.33 networksim-2.33
cd networksim-2.33
sudo aptitude install subversion libapache2-svn g++-4.1 autoconf automake

sudo aptitude install build-essential libxmu-dev
remove: sudo aptitude remove --purge build-essential libxmu-dev


cd /home/joselito/networksim-2.33/tk8.4.18/
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
patch -p0 < tk-8.4-lastevent.patch
cd ../
export CC=gcc-4.1 CXX=g++-4.1
cd /home/joselito/networksim-2.33/cweb
make install


cd /home/joselito/networksim-2.33/sgb
make tests
make installdemos
cd /home/joselito/networksim-2.33/zlib-1.2.3
./configure --prefix=/usr
make
make check
make install
cd /home/joselito/networksim-2.33/ns-2.33/ && cd ../
./install
gedit ~/.bashrc


# LD_LIBRARY_PATH
OTCL_LIB=/home/joselito/networksim-2.33/otcl-1.13
NS2_LIB=/home/joselito/networksim-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/joselito/networksim-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/joselito/networksim-2.33/bin:/home/joselito/networksim-2.33/tcl8.4.18/unix:/home/joselito/networksim-2.33/tk8.4.18/unix
NS=/home/joselito/networksim-2.33/ns-2.33/
NAM=/home/joselito/networksim-2.33/nam-1.13/
export PATH=$PATH:$XGRAPH:$NS:$NAM


source ~/.bashrc


cd /home/joselito/networksim-2.33/ns-2.33/
./validate


validate overall report: all tests passed


cd /home/joselito/networksim-2.33/ns-2.33/ && mv ns ns-lte && make clean && mv Makefile Makefile.org

svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only
mkdir project
cd lte-model-read-only/
sh checkin

sudo gedit /home/joselito/networksim-2.33/ns-2.33/Makefile
Edit Makefile in /home/joselito/networksim-2.33/ns-2.33/ , lines 41, 67 and 82 to location /home/joselito/networksim-2.33/ns-2.33/

copy to line #41: control+c e control+v
TCLSH = /home/joselito/networksim-2.33/bin/tclsh8.4

copy to line #67:
-I/home/joselito/networksim-2.33/tclcl-1.19 -I/home/joselito/networksim-2.33/otcl-1.13 -I/home/joselito/networksim-2.33/include -I/home/joselito/networksim-2.33/include -I/usr/include/pcap \

copy to line #82:
-L/home/joselito/networksim-2.33/tclcl-1.19 -ltclcl -L/home/joselito/networksim-2.33/otcl-1.13 -lotcl -L/home/joselito/networksim-2.33/lib -ltk8.4 -L/home/joselito/networksim-2.33/lib -ltcl8.4 \


cd /home/joselito/networksim-2.33/ns-2.33/project/
sudo ln -f /home/joselito/networksim-2.33/ns-2.33/ns-lte /usr/bin/ns


ln -f /home/joselito/networksim-2.33/ns-2.33/lte-model-read-only/*.h /home/joselito/networksim-2.33/ns-2.33/project/
ln -f /home/joselito/networksim-2.33/ns-2.33/lte-model-read-only/dlqueue.cc

./test


----PROBLEM 1:

invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set qos_ true " (file "lte.tcl" line 17)
 
Old 10-29-2012, 01:43 PM   #72
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
# 71
Quote:
I followed diligently post # 2 and # 4.
... And then your post #71 describes a completely different method ..
( I can see no indications that the "post # 4 adding headers" is done. Etc etc.)

Why rename to networksim-2.33 ? ? And why remove libxmu-dev ?

The more changes you make : The chance that something goes wrong increases.
The conclusion is still : No LTE was build into the binary 'ns'.

Please try out the package lte-ns-2.33-ubuntu10_i386.deb ( 6.2 MB )
providing /usr/local/bin/ ns-lte ns-orig
https://docs.google.com/open?id=0B7S...TZ2b0RYTVJUTnc
Installing the package : sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb

And you can co : ns-lte eyana.tcl

.
 
Old 11-01-2012, 07:47 PM   #73
joselitomoraes
LQ Newbie
 
Registered: Oct 2012
Location: Belém, Pará, Brasil.
Distribution: Ubuntu 10.04 LTS
Posts: 4

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by knudfl View Post
# 71

... And then your post #71 describes a completely different method ..
( I can see no indications that the "post # 4 adding headers" is done. Etc etc.)

Why rename to networksim-2.33 ? ? And why remove libxmu-dev ?

The more changes you make : The chance that something goes wrong increases.
The conclusion is still : No LTE was build into the binary 'ns'.

Please try out the package lte-ns-2.33-ubuntu10_i386.deb ( 6.2 MB )
providing /usr/local/bin/ ns-lte ns-orig
https://docs.google.com/open?id=0B7S...TZ2b0RYTVJUTnc
Installing the package : sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb

And you can co : ns-lte eyana.tcl

.


Sorry, after searching my failures I succeeded. Thank you!
 
Old 03-12-2013, 07:59 AM   #74
khouloud
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Rep: Reputation: Disabled
hello all
i'm using ns2 to simulate LTe how can I get the LTE module?
thanks
 
Old 03-12-2013, 09:24 AM   #75
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 # 74, @khouloud : Welcome to LQ.

The "lte module" is the executable 'ns' with the LTE files compiled into 'ns'.

Please evaluate what you mean.
The available files are supposed to be downloaded :
Please see the links in the LQ LTE threads → → LQ Search → Tag = lte

LTE examples .tcl : lte-examples-0213.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
1 members found this post helpful.
  


Reply

Tags
lte, lte-ns235, 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
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 19 04-09-2015 09:43 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
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

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

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