LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-31-2014, 04:42 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923

# 15 .

OK. The 32bits (i686) Ubuntu 12.04 :
Then install the additional compilers, gcc41-compat / g++41-compat,
post #18 here http://www.linuxquestions.org/questi...022/page2.html

.. When finished, and you have done a reboot, please check compiler presence:
$ which g++
$ which gcc41
$ which g++41
.. If you get replies /usr/gcc41/bin/gcc41 ,,, and /usr/gcc41/bin/g++41 ,
.. you can start the build of {ns-allinone-2.33 with LTE} :
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) $ export CC=gcc41 CXX=g++41 && ./install
e) $ cd ns-2.33/
f) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin/


There is also a package "lte-ns-2.33-ubuntu10_i386.deb" providing ///bin/ns-lte,
#15 here http://www.linuxquestions.org/questi...5-a-933953/#15

-

Last edited by knudfl; 04-01-2014 at 02:50 AM.
 
Old 03-31-2014, 01:47 PM   #17
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
ok thanks
I'll try this tomorrow (because this pc in the lab)
thanks again
 
Old 04-01-2014, 02:33 AM   #18
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
I installed the 2 compilers
after reboot , I checked for gcc & g++
for gcc :
$ which gcc
I got: /user/bin/gcc
for g++:
$ which g++
I got: nothing... every time I enter $ which g++ I got only this:
user@user-desktop:~$
even though I installed the 2 files , after I reach their path I entered:
"sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb g++41-compat-4.1.2_i386.deb"

Last edited by Redsfan86; 04-01-2014 at 02:35 AM.
 
Old 04-01-2014, 02:49 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
# 18 .

OK, no g++ .

Please install the ns2 prerequisites : 1) sudo apt-get update
2) sudo apt-get install g++ autoconf automake libtool libxmu-dev

Then you can try again :
$ which g++
$ which gcc41
$ which g++41

-
 
1 members found this post helpful.
Old 04-01-2014, 03:11 AM   #20
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thanks a lot Mr knudfl
I got:
/usr/bin/g++ (for which g++)

/usr/gcc41/bin/gcc41 (for which gcc41)

/usr/gcc41/bin/g++41 (for which g++41)
********

I suppose that I can start with this step now:
a) $ tar xvf ns-allinone-2.33.tar.gz


I appreciate ur help so much

Last edited by Redsfan86; 04-01-2014 at 03:16 AM.
 
Old 04-02-2014, 02:26 AM   #21
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hello again ...
I have many question...
1- I applied ns example3-lte.tcl
but I've got:
***********
invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true "
(file "example3-lte.tcl" line 15)
***********
I 've read about this problem, and I found the following:
**********
# 14 .
Quote:
invalid command name "Queue/LTEQueue/ULAirQueue"
That's an ns with no "LTE", or you are using a wrong 'ns'.

Suggest : Install the package 'lte-ns-2.33-ubuntu10_i386.deb'
http://drive.google.com/file/d/0B7S...it?usp=sharing
.. then you do not have to build any ns-2.33/lte,
.. and this will work : $ ns-lte eyana.tcl
**********
but still why I have to download this patch while I already downloaded: "lte-ns233-patching-2.tar.gz" ?
+
is the patch installing commands like this?

a) $ tar xvf lte-ns-2.33-ubuntu10_i386.deb
b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns-2.33-ubuntu10_i386.deb
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/

3- there is a post belongs to u:
**********
Works with the LTE examples : lte-examples-0213.tar.gz
http://drive.google.com/file/d/0B7S2...it?usp=sharing
Example $ ns-lte+dccp eyana.tcl
**********
but I couldn't found this file "lte+dccp eyana.tcl"
in the examples (I have downloaded LTE & DCCP examples)
all the scripts for LTE model in the examples that I have are about (tcp & udp)
there are examples for dccp, but the network is not LTE, (MANET, WIMAX,....)

4- for SCTP, you told me once that SCTP is already in ns-2 ,but what I mean I want the script for SCTP over LTE(specifically) which I don't know if the same script will work for other wireless network or not.

5- I'm a little bit confused, as I know in each simulation in ns-2 like "MANET" we
have to create: movement file+traffic file+ tcl file (which including the scripts for the simulation+ routing protocol+.....)
after that we will get a trace file & nam file
from the trace file u can get the performance metric (I usually used awk file to get the results)
but in theses examples that I downloaded , neither movement file nor traffic file I found...
so how come this could work?
again thank you very much
I'm really grateful from ur great efforts

Last edited by Redsfan86; 04-02-2014 at 07:17 AM.
 
Old 04-02-2014, 04:36 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
# 21
Quote:
a) $ tar xvf lte-ns-2.33-ubuntu10_i386.deb
Not a patch. "lte-ns-2.33-ubuntu10" is the complete application : ns-allinone+LTE,
i.e. all what's required to run simulations. Not much The package size = 6MB!
A package.deb : Install with $ sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb
... or use your 'Package Installer' : Click the package.


Quote:
invalid command name "Queue/LTEQueue"
Are you sure you installed gcc41-compat-4.1.2.ubu1204_i386.deb ?

-
 
Old 04-02-2014, 07:23 AM   #23
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thanks a lot .
******
Are you sure you installed gcc41-compat-4.1.2.ubu1204_i386.deb ?
*****
Yes... u told me to install the ns2 prerequisites
"sudo apt-get update"
"sudo apt-get install g++ autoconf automake libtool libxmu-dev"
then I got these outputs:
/usr/bin/g++ (for which g++)
/usr/gcc41/bin/gcc41 (for which gcc41)
/usr/gcc41/bin/g++41 (for which g++41)
 
Old 04-02-2014, 08:19 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
# 23 .

You will get the same result with the wrong versions too :
/usr/gcc41/bin/gcc41 (for which gcc41)
/usr/gcc41/bin/g++41 (for which g++41)

That's why I asked : Are you sure you installed gcc41-compat-4.1.2.ubu1204_i386.deb ?

Suggest : Delete any "gcc41-compat" that you downloaded, and download a new one :
https://docs.google.com/open?id=0B7S...lNURldUenRyb3c
The reinstall command is $ sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb

You can check the installed package with $ dpkg-query -s gcc41-compat | grep Version

-
 
Old 04-02-2014, 08:25 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
# 23 .

"ns2 prerequisites" : The long version : $ sudo apt-get install \
g++ autoconf automake make libtool patch libxmu-dev xgraph

And 'nam' : See post #17 here ...
http://www.linuxquestions.org/questi...373/page2.html

-
 
Old 04-02-2014, 01:31 PM   #26
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
I'll try ur posts tmrw in the lab
thanks a lot
 
Old 04-03-2014, 02:00 AM   #27
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
nothing worked!!!!
lets begin step by step plz
first all these file that I have download it ( lte patches + compilers) all
these files I put it in user-home-ns-allinone-2.33.
yesterday you suggested to re-install the compilers
with this command " sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb"
so after I logged to the path user-home-ns-allinone-2.33 I entered the command and I got:
*********
dpkg: error processing gcc41-compat-4.1.2.ubu1204_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
gcc41-compat-4.1.2.ubu1204_i386.deb
*********
then I told my self lets check the version (even-though I didn't uninstall & re-install the gcc)
I used this "dpkg-query -s gcc41-compat | grep Version"
& I git this: " Version: 4.1.2.ubu1204"
to be continue in nxt post....
 
Old 04-03-2014, 02:21 AM   #28
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
after that I tried to install LTE patch after I downloaded "lte-ns-2.33-ubuntu10_i386.deb"
I logged to the path , then I entered "sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb"
the output was like this
******
(Reading database ... 146772 files and directories currently installed.)
Preparing to replace lte-ns 2.33-ubuntu10 (using lte-ns-2.33-ubuntu10_i386.deb) ...
Unpacking replacement lte-ns ...
Setting up lte-ns (2.33-ubuntu10) ...
******
then "sudo ./install"
then I got long output ... this is the last section
*********************
Build OTcl-1.13
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-3.5.0-23-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/omar/ns-allinone-2.33/include -I/home/omar/ns-allinone-2.33/include -I/home/omar/ns-allinone-2.33/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/omar/ns-allinone-2.33/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/omar/ns-allinone-2.33/otcl-1.13/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
********************
then i tried to run simulation
I got this:
************
~/ns-allinone-2.33/lte-ex$ ns 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)
***********
 
Old 04-03-2014, 03:15 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,261

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
# 28 .
Quote:
.. then I entered "sudo dpkg -i lte-ns-2.33-ubuntu10_i386.deb"
Please remember that `lte-ns-2.33-ubuntu10_i386.deb' has nothing
to do with building your {ns-allinone-2.33 + lte}.
`lte-ns-2.33-ubuntu10_i386.deb' is the build result, and is
also all you need to do simulations.
Quote:
Preparing to replace lte-ns 2.33-ubuntu10 (using lte-ns-2.33-ubuntu10_i386.deb) ...
Unpacking replacement lte-ns ...
Setting up lte-ns (2.33-ubuntu10) ...
"replace" : The package was already installed. No reason to repeat.
"Setting up <name>" : Means a successful package install


Quote:
then "sudo ./install"
* Couldn't be more wrong : Read this again, post #11 ...
http://www.linuxquestions.org/questi...5-a-933953/#11
The command is $ export CC=gcc41 CXX=g++41 && ./install

* "/home/omar/" : Do not use sudo in /home/<>/. `sudo' is for administrative tasks only.
The only commands in ns-allinone to use sudo is 'make install'.

-

Last edited by knudfl; 04-03-2014 at 03:21 AM.
 
Old 04-04-2014, 07:31 AM   #30
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
thanks a lot
I i'' organize my self then I will try again
 
  


Reply

Tags
dccp_and_lte, lte, lte_and_dccp, 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
regarding LTE patch on ns2.35 swetha.goudar Linux - Networking 3 03-24-2014 05:11 AM
Simulating LTE using NS2 with LE patch sandeep10 Linux - Software 6 11-29-2013 02:27 PM
How to patch LTE-Module on NS-2.35 stojan Linux - Distributions 0 11-04-2013 10:45 PM
please help me,, how to patch LTE module in NS2.33... hadi wibowo General 0 05-14-2012 11:16 AM
patch LTE module for ns2 Emna Linux - Newbie 1 03-10-2011 02:59 AM


All times are GMT -5. The time now is 11:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration