Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I add ns2 light wimax (lwx)" for ns233 and lte but when i simulate the "eyana.tcl" it show for me this error
: memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/lte-ex_06.14$ 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)
memoire@memoire-virtual-machine:~/Desktop/ns-allinone-2.33/lte-ex_06.14$
i'm blocked i don't know what is the problem
Last edited by nassou19891; 09-19-2014 at 01:13 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← Ref. post #16.
Quote:
invalid command name "Queue/LTEQueue/ULAirQueue"
May be you are using a wrong executable "ns".
( Or you have a failed build.)
The trick is to use named copies of the right 'ns' in /usr/local/bin/ :
/usr/local/bin/{ns233_lwx+lte, ns234_MPTCP, ns234wimax-lwx+DCCP+LTE+MPTCP}
... etc. etc.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #18 .
Quote:
About building when I write "ns" in the terminal is shown "%"
it's mean that the ns is installed succefull
Not really. Unless you never have built any other 'ns' on that OS,
.. and you have no entries to .bashrc .
But : You can copy the file eyana.tcl to ns-allinone-2.33/ns-2.33/,
and do $ ./ns eyana.tcl
... Only then you can be sure it's the right 'ns'.
The safe way is renaming ns ( or copy ) to 'ns_wimax-lwx+lte', and :
$ sudo cp ns_wimax-lwx+lte /usr/local/bin/ .
... Then do the simulation with $ ns_wimax-lwx+lte eyana.tcl
when i copy the file eyana.tcl to ns-allinone-2.33/ns-2.33/, and do $ ./ns eyana.tcl this error was showen :
warning: no class variable Session/RTP::debug_
see tcl-object.tcl in tclcl for info about this warning.
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 "
i think that ns was not build succefuly . can you help me to verified that it was build succefuly .
I folow these steps :
$ tar xvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33/
$ patch -p0 < wimax-lwx_ns233.patch
$ patch -p0 < lte-ns2.33.patch
$ export CC=gcc41 CXX=g++41 && ./install
Last edited by nassou19891; 09-19-2014 at 04:25 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #20 .
Quote:
warning: no class variable Session/RTP::debug_
see tcl-object.tcl in tclcl for info about this warning.
That's the usual output from $ ns-lte eyana.tcl
About nam : Delete all nam* that you can find in /home/<name>/,
.. and install a usable nam, from nam-1.14.i586.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing
$ tar xvf nam-1.14.i586.tar.gz
$ cd nam-1.14.i586/
$ sudo cp nam /usr/local/bin/
* The nam you can build from ns-allinone often fails,
and the Ubuntu packages from Ubuntu have not been good for some time.
Sorry i follow the steps that you given to me about nam but i have another problem .
i uninstal ns2.34 and i reinstal it by following this steps : http://ns2-ubuntu.blogspot.com/ but when i write ns to be sure that ns2.34 is installed correctly i have this message :
"The program 'ns' is currently not installed. You can install it by typing:
sudo apt-get install ns2
I think that ns was not installed what should i do please ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #22 .
Quote:
I think that ns was not installed
Installing the executable 'ns' is done this way :
$ cd ns-allinone-2.34/ns-2.34/
$ sudo make install
I.e. 'make install' will copy 'ns' to /usr/local/bin/
.... And if you have more than one version of ns-allinone :
$ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns_new.name
$ sudo cp ns_new.name /usr/local/bin/
About http://ns2-ubuntu.blogspot.com/ : Don't use it !
The purpose of the text is to use a later gcc/g++ ,
instead of the gcc/g++ that ns-2.34 was made for.
The instructions may work ( sometimes ) for an ns234,
with no extra protocols added.
And I think this thread is all about lots of "extra's".
Besides that, the text about adding *PATH text to .bashrc makes no sense :
The executable 'ns' is hard coded to know the location of it's libraries.
unfortunately , i was doing this steps in http://ns2-ubuntu.blogspot.com/ and i install gcc/g++.so how could i begin from zero and install ns with using your steps
i didn't change the bashrc file but i make a new file called bash_aliases like he said in the link and i put the PATH . But i couldn't delate it it can bathered me or not ??
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #28 .
Reading http://ns2-ubuntu.blogspot.com/ ,
you will know that the file name is ~/.bash_aliases
.. That's a hidden file in your /home/<name>
Deleting : $ rm .bash_aliases
Think you i delate the bash_aliases file but when try to install ns bu following your steps this message was showen make: *** No rule to make target `install'. Stop.
Note :there is a file install under the ns-allinone-2.34 not ns-2.34
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.