LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 04:55 AM.
 
2 members found this post helpful.
Old 10-29-2012, 05: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, 12: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, 09: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, 10: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, 10: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, 01:57 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 06: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, 12: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, 12:57 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

-
 
Old 07-15-2019, 02:14 AM   #12
deepika2210
LQ Newbie
 
Registered: Jul 2019
Posts: 1

Rep: Reputation: Disabled
tcl not installed properly

tcl not initailased issue after installing ns2.35 on ubuntu 16.04
 
Old 07-15-2019, 03:42 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #12, @deepika2210 : Welcome to LQ.

ns-2.35 and Ubuntu 16.04 :
Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz         // 2014 update
https://drive.google.com/file/d/0B7S...ew?usp=sharing

cd ns-allinone-2.35/
./install
cd ns-2.35/ && sudo make install
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.

-
 
1 members found this post helpful.
  


Reply

Tags
ns2


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 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
Open Source Consulting | Domain Registration