LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   NS2 installation problem on solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/ns2-installation-problem-on-solaris-10-a-494039/)

capricorn80 10-20-2006 01:55 AM

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.

bathory 10-20-2006 03:22 AM

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
If you want ./configure to find your newlly installed libraries you can also run:
Code:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Regards

capricorn80 10-24-2006 01:47 PM

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.

capricorn80 10-30-2006 10:49 PM

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

bathory 10-31-2006 01:52 AM

Quote:

sh: g++: not found
Did you add /usr/sfw/bin in your PATH as I told you?

capricorn80 10-31-2006 03:27 AM

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?

bathory 10-31-2006 04:33 AM

Quote:

I use command below. Just check that its ok ?
LD_LIBRARY_PATH=path1:/path2:/path3;export LD_LIBRARY_PATH
It's not OK. The correct syntax is the one I gave you before:
Code:

export LD_LIBRARY_PATH=/path1:/path2:/path3:$LD_LIBRARY_PATH
If you have to define a TCL_LIBRARY the syntax is the same:
Code:

export TCL_LIBRARY=/software/nss/ns-allinone-2.30/tcl8.4.13/library
To make these env. variables available after a logout or reboot (and to any scripts that you may use), you must put those commands in your /etc/profile just before the last line.

capricorn80 10-31-2006 06:10 AM

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.

bathory 10-31-2006 06:51 AM

Quote:

libtk8.4.so: open failed: No such file or directory
Are you sure that the path to libtk8.4.so is in your LD_LIBRARY_PATH?

capricorn80 10-31-2006 09:41 AM

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.

bathory 10-31-2006 10:30 AM

Quote:

one more thing should i install additional things to get Ns2 GUI?
I'm afraid I don't know what NS2 is. You have to read the documentation that comes with the software or use google to find out what you need to install.

capricorn80 10-31-2006 11:00 PM

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

bathory 11-01-2006 02:07 AM

Quote:

ld.so.1: ns: fatal: libtk8.4.so: open failed: No such file or directory
Where is that libtk8.4.so? Is it in a directory specified in LD_LIBRARY_PATH.
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)

capricorn80 11-01-2006 03:25 AM

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 .

bathory 11-01-2006 04:51 AM

Try to define also another env. variable:
Code:

export LD_RUN_PATH=/usr/local/lib
Also you can run
Code:

ldd -s /software/nss/ns-allinone-2.30/bin/ns
to see where it searches for the needed libraries


All times are GMT -5. The time now is 02:57 PM.