NS2 installation problem on solaris 10
hi !
i am trying to install NS2 version allinone-2.30 on solaris 10. As mentioned in its README and doc that all we have to do is to run ./install n it will do it all. when i tried ./install it gave me error ./install: make: not found tcl8.4.13 make failed! Exiting ... well i dont know wats the problem as they have mention in there doc that all u have to do is to run command ./install. Anyways i added package tcl-8.5a4-sol10-sparc-local n its path is /usr/local/lib/8.4 then i tried again n result was same. Then tried next command i.e ./install --with-tcl=/usr/local/lib/tcl8/8.4/ same result and then i cd into /ns-2.30 bash-3.00# pwd /software/nss/ns-allinone-2.30/ns-2.30 I used command ./configure and the result was configure: error: Installation of tclcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where tclcl is using the argument --with-tclcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-tclcl=no. I tried these ./configure --with-tclcl=/usr/local/lib/tcl8/ ./configure --with-tclcl=/usr/local/lib/tcl8/8.4 Result configure: error: tclcl is required but could not be completely found. Please correct the problem by telling configure where tclcl is using the argument --with-tclcl=/path/to/package, or the package is not required, disable it with --with-tclcl=no. Now i have download tcl8.4.11-src.tar.gz tk8.4.11-src.tar.gz otcl-1.11.tar.gz tclcl-1.17.tar.gz gsl-1.8.tar.gz from site http://yans.inria.fr/ns-2-80211/ and try to install tk8.4... n got error checking for ar... no configure: error: Required archive tool 'ar' not found on PATH. I really confused that why this allineone ./install do all installation for us. Take care. |
The utilities like "make" and "ar" that ./configure cannot find are in /usr/ccs/bin, so you have to change your PATH to include that directory. Also note that gcc is in /usr/sfw/bin, so before anything else, run:
Code:
export PATH=/usr/ccs/bin:/usr/sfw/bin:$PATH Code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH |
hi bathory !
I did this n tk8.4.11-src.tar.gz , tclcl-1.17.tar.gz working ok but got problems with tclcl-1.17.tar.gz. I will see it in office after holidays. I wish NS2 will install soon. Well one of my question remains there y not ns-allinone2.30 do all this for us as mentioned in documentation. |
help me in this
rm -f tcl2c++ g++ -o tcl2c++ tcl2c++.o sh: g++: not found *** Error code 1 make: Fatal error: Command failed for target `tcl2c++' tclcl-1.18 make failed! Exiting ... See http://www.isi.edu/nsnam/ns/ns-problems.html for problems |
Quote:
|
OK i did that.
Ns is installed but now got some configuration issues. 1. how to specify /software/nss/ns-allinone-2.30/otcl-1.12,/software/nss/ns-allinone-2.30/lib,into your LD_LIBRARY_PATH environment variable. I use command below. Just check that its ok ? LD_LIBRARY_PATH=path1:/path2:/path3;export LD_LIBRARY_PATH But not getting how to specify /software/nss/ns-allinone-2.30/tcl8.4.13/library into TCL_LIBRARY environmental variable? |
Quote:
Code:
export LD_LIBRARY_PATH=/path1:/path2:/path3:$LD_LIBRARY_PATH Code:
export TCL_LIBRARY=/software/nss/ns-allinone-2.30/tcl8.4.13/library |
which ns
/software/nss/ns-allinone-2.30/bin/ns bash-3.00# ns ld.so.1: ns: fatal: libtk8.4.so: open failed: No such file or directory Killed bash-3.00# % bash: fg: %: no such job i m getting this error. libtk8.4 is in /usr/local/bin and this path is added still its giving me some error. |
Quote:
|
i add libtk8.4.so in my profile path not in LD_LIBRARY_PATH.
i m little confused i will check it tomorrow in office. one more thing should i install additional things to get Ns2 GUI? As mentioned in documentation to access /software/nss/ns-allinone-2.30/bin/ns will give me NS2 cli prompt. |
Quote:
|
I am pasting u my settings. I have added /usr/local/lib to my path n also to LD_LIBRARY_PATH. plz check it.
bash-3.00# /usr/local/lib/libtk8.4.so bash-3.00# cat .profile PATH=$PATH:/usr/sbin:/usr/bin:/usr/local/lib:/software/nss/ns-allinone-2.30/lib:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/bin:/usr/sfw/bin/software/nss/ns-allinone-2.30/bin:/software/nss/ns-allinone-2.30/tcl8.4.13/unix:/software/nss/ns-allinone-2.30/tk8.4.13/unix; export PATH PATH=/software/nss/ns-allinone-2.30/bin:/software/nss/ns-allinone-2.30/tcl8.4.13/unix:/software/nss/ns-allinone-2.30/tk8.4.13/unix:$PATH LD_LIBRARY_PATH=/software/nss/ns-allinone-2.30/otcl-1.12:/usr/local/lib:/software/nss/ns-allinone-2.30/lib:$LD_LIBRARY_PATH TCL_LIBRARY=/software/nss/ns-allinone-2.30/tcl8.4.13/library:$TCL_LIBRARY bash-3.00# which ns /software/nss/ns-allinone-2.30/bin/ns bash-3.00# /software/nss/ns-allinone-2.30/bin/ns ld.so.1: ns: fatal: libtk8.4.so: open failed: No such file or directory Killed |
Quote:
Also as I told you, perhaps it's better to put those env. variables into /etc/profile so that they are available to all users and not in a .bash_profile because it's not sure that an application will use it. Also you can try to re-export LD_LIBRARY_PATH before running that ns (and there is no need to specify the whole path to ns since it's in your PATH) |
Ns2 is Network Simulator ( http://www.googlesyndicatedsearch.com/u/uscisi?q=NS2 ) n i m trying to install it on Solaris 10.
Where is that libtk8.4.so? Its in /usr/local/lib/ bash-3.00# /usr/local/lib/libtk8.4.so Is it in a directory specified in LD_LIBRARY_PATH yes LD_LIBRARY_PATH=/software/nss/ns-allinone-2.30/otcl-1.12:/usr/local/lib:/software/nss/ns-allinone-2.30/lib:$LD_LIBRARY_PATH Also as I told you, perhaps it's better to put those env. variables into /etc/profile . i have put it in .profile bash-3.00# cat .profile PATH=$PATH:/usr/sbin:/usr/bin:/usr/local/lib:/software/nss/ns-allinone-2.30/lib:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/bin:/usr/sfw/bin/software/nss/ns-allinone-2.30/bin:/software/nss/ns-allinone-2.30/tcl8.4.13/unix:/software/nss/ns-allinone-2.30/tk8.4.13/unix; export PATH Also you can try to re-export LD_LIBRARY_PATH before running that ns i did that. still problem . |
Try to define also another env. variable:
Code:
export LD_RUN_PATH=/usr/local/lib Code:
ldd -s /software/nss/ns-allinone-2.30/bin/ns |
All times are GMT -5. The time now is 02:57 PM. |