Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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 have encounter problem when I do as follow in unbuntu 10.0.4.kmw@ubuntu:~$ ns
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/kmw/ns-allinone-2.34/lib/tcl8.4 /home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/kmw/ns-allinone-2.34/tcl8.4.18/library:/usr/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.18/library /tcl8.4.18/library /home/kmw/ns-allinone-2.34/lib/tcl8.4
This probably means that Tcl wasn't installed properly.
% .
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
Can't find a usable init.tcl in the following directories:
This error can happen if you make any changes to the "ns-allinone-2.34/" directory :
Renaming the directory, moving the directory to another location,
i.e. anything that will change the "/home/kmw/ns-allinone-2.34/tcl8.4.18/lib/" path.
Or when changes were made in /home/kmw/ns-allinone-2.34/tcl8.4.18/lib/
Note :
The binary 'ns' is hard coded to know the location of it's libraries, tclsh8* :
/home/kmw/ns-allinone-2.34/tcl8.4.18/bin/, /home/kmw/ns-allinone-2.34/tcl8.4.18/lib/
Problem solved for init.tcl not found, tcl not installed properly
I faced the same problem during my last installation of ns2.35 in ubuntu 11.04.
After I install ns2.35, got message of successful installation of ns. Then I set path in /.bashrc. Then I gave ns command which gave me same error which you got.
The problem is because, ns executable is also at /usr which is conflicting.
Solution:
1. Go to location root-usr-local-bin by giving following command in terminal
cd /usr/local/bin
2. There you would find the ns file. We just need to remove it by giving following command
rm ns
3. Thats it, you are done. Now your ns starts running successfully.
@knudfl
Dear Sir,
I make changes ns2 directores and reinstall again when I can't solve the error e.g Link State.0. I occur that error whenever i change .tcl and .cc and Makefile.in under ns directory. last time reinstallation is ok,(just delete the old ns2 directory and create new folder and place new installation in it. but now, I have "Can't find a usable init.tcl in the following directories:" Error. As you mention, I use this command "cd st/ns-allinone-2.35/tcl8.5.10/ && ln -s lib/library" , then this following error occurs "ln: failed to create symbolic link `./library': File exists". How to fix this , Sir. Please kindly help me.
this error occurs "cannot remove `ns': Permission denied" when use "rm ns" although using sudo command. How to fix the error Sir.
Please check are you logged in as super user?
Type in command prompt,
sudo su
Permission is denied because u r not logged into as super user.
Once logged into as super user, u would be able to follow the procedure.
Have you got any idea on data storage on mobile nodes of MANETs? I wanna store user data on the mobile nodes and want to share that data among the nodes. Is it possible to implement in NS2? Although I've been digging up the Internet about this problem , I can't find it out yet. If you have knowledge on it, please kindly tell me the links or some tutorials. Thank you in advance.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 10 .
If at all possible ( I have no idea what it is about ),
there are better chances with the more complex simulators.
NCTUns / EstiNet, OMNeT++, ns3 :
I guess they all have a Forum, where you can ask.
And please do not run `./configure && makeŽ in ns-2.35/ :
Use the `$ ./installŽ command in ns-allinone-2.35/ → →
The 'install' script takes care of all configure && make, in the right sequence.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.