LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-21-2014, 11:10 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599

← #30 .

You can only install 'ns', when the file is present.

'make install' uses the Makefile, see section »install«
( That's around line 546 ) :
install: dirs force install-ns install-man
 
Old 09-21-2014, 11:22 AM   #32
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
can you explain more !!!!!

what can i do all the version that i download it have the file install under ns-allinone-2.34 not ns-2.34 and i didn't understand what is the problem
help please i can do any thing without installation of ns

Last edited by nassou19891; 09-21-2014 at 11:51 AM.
 
Old 09-21-2014, 12:49 PM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #32 .

Have you tried to follow e.g post #4 ?


Wimax-lwx + LTE example.
$ tar xvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33/
$ patch -p0 < WimaxLWX+lte+dccp_ns233.patch
$ export CC=gcc41 CXX=g++41 && ./install
... And when everything is finished OK :
$ cd ns-2.33/
Check the presence of 'ns' $ ls ns
If the executable 'ns' is in //ns-2.33/, do :
$ cp ns ns-wimaxlwx-lte
$ sudo cp ns-wimaxlwx-lte /usr/local/bin/
* ( Instead of 'make install' ).
And some simulation : $ ns-wimaxlwx-lte eyana.tcl


??? What happened to the 'ns' that you used yesterday for $ ns eyana.tcl

-

Last edited by knudfl; 09-21-2014 at 01:04 PM.
 
Old 09-21-2014, 01:02 PM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #32.

Or / and Wimax.lwx+LTE+dccp+MPTCP :
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < lwx+LTE+dccp+MPTCP.patch
$ export CC=gcc41 CXX=g++41 && ./install
... And when everything is finished OK :
$ cd ns-2.34/
$ cp ns ns-wimaxlwx-lte-MPTCP
$ sudo cp ns-wimaxlwx-lte-MPTCP /usr/local/bin/
Simulation : $ ns-wimaxlwx-lte-MPTCP eyana.tcl

* Please remember that you can have an infinite number
of ns2 installs at the same time.


-

Last edited by knudfl; 09-21-2014 at 01:23 PM.
 
Old 09-21-2014, 01:42 PM   #35
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
think you very much for your help.

my question is : what you mean about "ns-wimaxlwx-lte-MPTCP" ; is it the folder of the example that i download it or a folder integred in ns-2.34 ?? Because when i write to make the Simulation : $ ns-wimaxlwx-lte-MPTCP eyana.tcl , it told that it coudn't read "eyana.tcl" no such file or directory .
 
Old 09-21-2014, 03:35 PM   #36
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
ok i find the "ns-wimaxlwx-lte-MPTCP" under ns-2.34 but i don't understand what is the type of it.

i read in post #18 that you told me that is the safe way to simulate is renaming the "ns" but under the ns-2.34 i find the two "ns" and "ns-wimaxlwx-lte-MPTCP "

note: where did i put the "eyana.tcl" en general the example that i want to simulated ?
 
Old 09-21-2014, 04:01 PM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #35 .
Quote:
"eyana.tcl" no such file or directory .
Please go to the directory with "eyana.tcl"
( Probably ``lte-ex_06.14/´´ : the unpacked lte-examples-0614.tar.gz ).


→ #36 .
About ns-wimaxlwx-lte-MPTCP , see post #34 :
$ sudo cp ns-wimaxlwx-lte-MPTCP /usr/local/bin/
... then you can do the simulation in lte-ex_06.14/ :
$ ns-wimaxlwx-lte-MPTCP eyana.tcl

-

Last edited by knudfl; 09-21-2014 at 04:03 PM.
 
Old 09-21-2014, 04:27 PM   #38
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
i do like you said for me .
I have the same problem that i post it at the post #19 the problem of nam.
i follow the steps to build the nam but the problem is showen again untel after i do the steps that you gived to le in post #19.
memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/ns-2.33$ nam: nam_init out.nam : couldn't open "/home/memoire/.nam-port": permission denied
while executing
"open $PORT_FILE_ w 0600"
(procedure "_o3" line 20)
(AnimControl start-server line 20)
invoked from within
"$self start-server"
(procedure "_o3" line 3)
(AnimControl local-create-animator line 3)
invoked from within
"$self local-create-animator $trace_file [join $args]"
invoked from within
"if $flag {
$self local-create-animator $trace_file [join $args]
} else {
$self remote-create-animator $trace_file [join $args]
}"
(procedure "_o3" line 20)
(AnimControl init line 20)
invoked from within
"_o3 init out.nam {}"
(Class create line 1)
invoked from within
"AnimControl create _o3 out.nam {}"
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 AnimControl $trace_file $args"
(procedure "nam_init" line 2)
invoked from within
"nam_init out.nam "


realy i'm blocked i i don't know what should i do
 
Old 09-21-2014, 05:09 PM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #38 .

I have never seen a file ".nam-port" on my OS´s.

Did you install the nam executable from nam-1.14.i586.tar.gz ?
* See post #21.

Quote:
I follow the steps to build the nam
You are not supposed to use the nam that you build yourself.

-
 
Old 09-21-2014, 05:19 PM   #40
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
you mean by install nam do this steps :
$ tar xvf nam-1.14.i586.tar.gz
$ cd nam-1.14.i586/
$ sudo cp nam /usr/local/bin/

if it is yes i do.

should i put the nam folder under ns-allinone-2.34 ?
 
Old 09-21-2014, 05:31 PM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #40.

The usual : Keep downloaded stuff in "Downloads".
And you can also unpack nam-1.14.i586.tar.gz in Downloads/,
and copy nam to /usr/local/bin/ .

-
 
Old 09-22-2014, 04:19 AM   #42
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
the animation was worked , i'm very very thinkful to help me . the problem is i should run the simulation under root .

Q1: there is no problem if i work under root ??
Q2 :when the animation was worked well is mean that the patch was worked well ??, can i use the wimax , lte , dccp , mptcp to do another tcl file without problem ?
Q3 : Also i want to use xgraph or gnuplot ? how can i ? My friends told me that gnuplot is well then xgraph ,is it ?
 
Old 09-22-2014, 04:33 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #42 .

Q1. Why do you want to use root ?
Definitely not recommended ! root is for administrative tasks only.

It is assumed that you have all "ns-allinone-2.3x" in /home/<user-name>/,
.. and do all simulations as unprivileged user. Hence the $ command prompt.

Q2. Just go ahead. I already showed examples and packages for all protocols.

Q3. $ sudo apt-get install xgraph gnuplot.


-

Last edited by knudfl; 09-22-2014 at 04:36 AM.
 
Old 09-22-2014, 05:03 AM   #44
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
when i do simulation for many example under /home/<memoire> is show for me in terminal that is worked well . But when i want to run nam it does not work under user privelege it work only under root , i don't know why !!!
Note : this is what showen when i'm under user in terminal : memoire@memoire-virtual-machine:~$

this when i'm under root : root@memoire-virtual-machine:/home/memoire#
why /home/memoire was showen anly when i'm under root ?? is it mean that under user is by default /home/memoire ??
sory for asking you this question , i'm not profesionnel for using linux OS

Last edited by nassou19891; 09-22-2014 at 05:04 AM.
 
Old 09-22-2014, 06:07 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
← #44 .
Quote:
.. run nam it does not work under user unprivileged it work only under root
May be '/usr/local/nam' has got wrong permissions ?

Please do : $ sudo chmod 0755 /usr/local/bin/nam

And : ? What is the reply from : $ which nam



Quote:
this when i'm under root : root@memoire-virtual-machine:/home/memoire#
why /home/memoire was showen anly when i'm under root ?
'su' doesn't switch to root. But you get root privileges.
'su -' is the command for switching to root.
And also have root PATH's included.


-

Last edited by knudfl; 09-22-2014 at 10:57 AM.
 
  


Reply

Tags
lte, mptcp, ns2, wimax-lwx_and_lte


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 On
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
[SOLVED] patching lte in ns2.33 chandana Linux - Software 19 03-01-2014 12:20 AM
Ns2 + wimax ballexaa Linux - Software 1 09-14-2013 03:27 PM
Ns2-lte binteasim Linux - Software 2 07-23-2013 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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