LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NS2: Can't find a usable init.tcl (https://www.linuxquestions.org/questions/linux-software-2/ns2-cant-find-a-usable-init-tcl-4175530221/)

akshathar 01-06-2015 12:26 PM

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

knudfl 01-06-2015 01:39 PM

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/.)

-

John VV 01-06-2015 07:52 PM

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


All times are GMT -5. The time now is 01:21 AM.