Linux - SoftwareThis 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
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'm prasuna
i installed ns2.34 in laptop successfully.when i run any probgram it shows the following errors.please help me.tell me d reason of that error.
% ns MAgent.tcl
error when calling class OldSim: MAgent.tcl
%
[root@localhost ~]# ns
% ns sample.tcl
warning: using backward compatibility mode
error when calling class OldSim: sample.tcl
%
You don't need to be root to run ns. And it is unsafe.
Please do all ns commands as unprivileged user.
'root' is for administrative tasks only.
% ns file.tcl : Will not work.
The command is simply : ns file.tcl
.....
i tried sir but its not working.dont mine sir i'm very beginer to this sir i dont know the abc of it.I tried as you said
[root@localhost ~]# ns MAgent.tcl
couldn't read file "MAgent.tcl": no such file or directory
[root@localhost ~]# ns simple.tcl
couldn't read file "simple.tcl": no such file or directory
i also tried by going into the ns2.34
[root@localhost ~]# cd /home/karthik
[root@localhost karthik]# cd ns-allinone-2.34
[root@localhost ns-allinone-2.34]# cd ns-2.34
[root@localhost ns-2.34]# ns simple.tcl
couldn't read file "simple.tcl": no such file or directory
[root@localhost ns-2.34]# cd /home/karthik
[root@localhost karthik]# ns simple.tcl
couldn't read file "simple.tcl": no such file or directory
[root@localhost karthik]# ns simple.tcl
couldn't read file "simple.tcl": no such file or directory
[root@localhost karthik]#
I have validate ns 2.34 and it is fine. the PC is Fedora 13
Seems to have done everything .
but i have these errors and NS is not working ........PLEASE HELP!!
1
[johna@MQMKlocalhost ex]$ simple.tcl
bash: simple.tcl: command not found
[johna@MQMKlocalhost ex]$ ns simple.tcl
bash: ns: command not found
[johna@MQMKlocalhost ex]$
below is my .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# LD_LIBRARY_PATH
OTCL_LIB=/home/johna/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/johna/ns-allinone-2.34/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/johna/ns-allinone-2.34/tcl8.4.15/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/johna/ns-allinone-2.34/bin:/home/johna/ns-allinone-2.34/tcl8.4.15/unix:/home/johna/ns-allinone-2.34/tk8.4.14/unix
NS=/home/johna/ns-allinone-2.34/ns-2.32/
NAM=/home/johna/ns-allinone-2.34/nam-1.14/nam
PATH=$PATH:$XGRAPH:$NS:$NAM
#Ns-allinone package has been installed successfully.
#Here are the installation places:
#tcl8.4.18: /home/johna/ns-allinone-2.34/{bin,include,lib}
#tk8.4.18: /home/johna/ns-allinone-2.34/{bin,include,lib}
#otcl: /home/johna/ns-allinone-2.34/otcl-1.13
#tclcl: /home/johna/ns-allinone-2.34/tclcl-1.19
#ns: /home/johna/ns-allinone-2.34/ns-2.34/ns
#nam: /home/johna/ns-allinone-2.34/nam-1.14/nam
#gt-itm: /home/johna/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
#Libraries have been installed in:
# /home/johna/ns-allinone-2.34/lib
#If you ever happen to want to link against installed libraries
#in a given directory, LIBDIR, you must either use libtool, and
#specify the full pathname of the library, or use the `-LLIBDIR'
#flag during linking and do at least one of the following:
# - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
# during execution
# - add LIBDIR to the `LD_RUN_PATH' environment variable
# during linking
# - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
# - have your system administrator add LIBDIR to `/etc/ld.so.conf'
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@ goodGOD, post # 5 : Welcome to LQ.
Instead of all the troubles with 'setting a path', suggest :
cd ns-allinone-2.34/ns-2.34/
su
make install
..... which will copy 'ns' to /usr/local/bin/
The same can be done with nam : cd ns-allinone-2.34/nam-1.14/ , etc.
thanks for tips, all ns 2.34 is good and working now.
Please if I want to install NS 3 on the same PC and on Fedora 13.......is it possible ........will there be conflicts between ns 2.34 and ns 3 on the same machine.
I want to work on Optical Network, I was informed by a friend that NS 3 versions may be better but I first thought ns 2.34 should be more stable.
Also this PC IBM Lenovo G555 with Fedora 13 couldn't see the wireless card on the machine. I will like to configure it so as to connect to Wirelss Network. Please what are the steps I should follow to make it. thanks
Also what does this commect means ..........
it occurs after the ns 2.34 installation
I just put it in .bashrc file so as to work on it
#If you ever happen to want to link against installed libraries
#in a given directory, LIBDIR, you must either use libtool, and
#specify the full pathname of the library, or use the `-LLIBDIR'
#flag during linking and do at least one of the following:
# - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
# during execution
# - add LIBDIR to the `LD_RUN_PATH' environment variable
# during linking
# - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
# - have your system administrator add LIBDIR to `/etc/ld.so.conf'
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post # 8 : As the text says : If you ever happen to want to link against installed libraries ...
I.e. installed libraries = ns-allinone-2.34/lib/libtcl* , etc. : If you want to build software,
e.g. a new protocol in ns2, you may have to point to those.
( It has never occurred with anything, I tried to build.)
A PC IBM Lenovo G555 with Fedora 13 couldn't see the wireless card on the machine.
I will like to configure it so as to connect to Wirelss Network.
Please what are the steps I should follow to make it. thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.