LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-29-2012, 05:10 AM   #1
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Rep: Reputation: Disabled
Tcl wasn't installed properly.


Hello All,

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.
% .

So,please help me !
It is important for me.
 
Old 10-29-2012, 05:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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/

Workarounds, fixes :
1) cd ns-allinone-2.34/tcl8.4.18/ && ln -s lib/ library
2) Reinstall ns-allinone-2.34


.

Last edited by knudfl; 10-29-2012 at 05:55 AM.
 
1 members found this post helpful.
Old 10-29-2012, 06:06 AM   #3
khinmyo
Member
 
Registered: Aug 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Hello sir,
Thank You for your quickly reply!
You always save me!
 
Old 12-07-2012, 01:27 AM   #4
bhargavigoswami
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Rep: Reputation: Disabled
Thumbs up 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.

Happy Learning.....
 
1 members found this post helpful.
Old 03-13-2013, 10:51 AM   #5
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
@bhargavigoswami

this error occurs "cannot remove `ns': Permission denied" when use "rm ns" although using sudo command. How to fix the error Sir.
 
Old 03-13-2013, 11:17 AM   #6
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
@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.

Regards,
Ms. Nwe Nwe
 
Old 03-13-2013, 11:39 AM   #7
bhargavigoswami
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by Nwe Nwe View Post
@bhargavigoswami

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.
 
1 members found this post helpful.
Old 03-13-2013, 02:57 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Post # 6.

ns-allinone-2.xx cannot be renamed or moved to a new folder.
Then 'ns' will not find ns-allinone-2.xx/lib/, ns-allinone-2.xx/bin/.

And : ns-allinone-2.35 is particular problematic.

-
 
1 members found this post helpful.
Old 03-13-2013, 07:55 PM   #9
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
@knudfl, @bhargavigoswami

Thank you very much both of you Sir. Now, I solved that Problem.
 
Old 03-14-2013, 01:26 AM   #10
Nwe Nwe
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
Dear All,

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.

Regards,
Ms. Nwe Nwe
 
Old 03-14-2013, 01:57 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 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.

-
 
  


Reply


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
ns2.34 not installed properly aruna kadam Linux - Software 1 08-11-2012 04:33 AM
fedora core 4 - tcl/tk wish not installed? afa_linux Linux - General 2 11-23-2005 11:22 AM
amsn says tcl/tk not correctly installed? please help! phiqtion Linux - Newbie 2 05-29-2004 01:08 AM
I have Installed TCL but cant TK please help this NooB Raven_new1 Linux - Newbie 3 01-21-2004 01:33 PM
Why wasn't amixer installed with Alsa ashtar Linux - General 1 04-12-2002 02:32 PM


All times are GMT -5. The time now is 09:05 PM.

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