LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-06-2015, 12:26 PM   #1
akshathar
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
NS2: Can't find a usable init.tcl


i had installed ns 2.35 0n fedora 11
but after validating
when i run ns command
i am getting the following error
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/abcdef/ns-allinone-2.35/tcl8.5.10/library:/usr/lib /home/abcdef/ns-allinone-2.34/lib/tcl8.4 /home/abcdef/ns-allinone-2.35/tcl8.5.10/library:/usr/lib /home/abcdef/ns-allinone-2.35/tcl8.5.10/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/abcdef/ns-allinone-2.34/lib/tcl8.4



how can i remove this error please help me
 
Old 01-06-2015, 01:39 PM   #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
Welcome to LQ.

The executable 'ns' is hard coded to know the location of itīs libraries.
Like /home/abcdef/ns-allinone-2.35/{ lib/, bin/ },
... which also means you cannot move ns-allinone-2.35/ to a new location.

If the problem is that you have two version of ns2 :
Both ns-allinone-2.34/ and ns-allinone-2.35/ are listed in post #1.
Then you will have to decide which one should keep the name 'ns'.

Example install :
1) ns-allinone-2.35
$ cd ns-allinone-2.35/ns-2.35/
$ sudo make install
( 'make install' will copy 'ns' to /usr/local/bin/.)

2) ns-allinone-2.34
$ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns234
$ sudo cp ns234 /usr/local/bin/
* All simulations can be done with $ ns234 file.tcl

* Important : Delete any entry you may have done to .bashrc .
( The old year ~1999 text about adding a *PATH text to .bashrc :
Was meant only for a "University Computer",
where you had no write access to /usr/.)

-
 
1 members found this post helpful.
Old 01-06-2015, 07:52 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
i had installed ns 2.35 0n fedora 11
a take it you are NOT aware that fedora 11 is TEN ( 10 ) versions out of date
and has been UNSUPPORTED since it went END OF LIFE on "2010-06-25"

it is missing the last 4.5 YEARS!!!!! of updates

#### DO NOT USE !!!!!! ####

the software repos were MOVED to the historical archives
yum WILL NOT be able to install anything
there are NO active repos for it any longer

Last edited by John VV; 01-06-2015 at 07:57 PM.
 
  


Reply

Tags
ns2



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
Linking C++ to TCL in ns2 Zahraa Ayad Programming 2 12-19-2014 04:06 AM
olsr.tcl with ns2.35 Suhaila Linux - Software 6 03-10-2014 11:16 AM
NS2, need TCL code chilamanda Linux - Software 2 10-03-2013 03:10 PM
vlan.tcl in ns2 aditi.sen Linux - Networking 1 03-21-2013 03:35 AM
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 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