LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-20-2006, 01:55 AM   #1
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Rep: Reputation: 15
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.
 
Old 10-20-2006, 03:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 10-24-2006, 01:47 PM   #3
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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.
 
Old 10-30-2006, 10:49 PM   #4
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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
 
Old 10-31-2006, 01:52 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
sh: g++: not found
Did you add /usr/sfw/bin in your PATH as I told you?
 
Old 10-31-2006, 03:27 AM   #6
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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?

Last edited by capricorn80; 10-31-2006 at 03:28 AM.
 
Old 10-31-2006, 04:33 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 10-31-2006, 06:10 AM   #8
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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.
 
Old 10-31-2006, 06:51 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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?
 
Old 10-31-2006, 09:41 AM   #10
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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.

Last edited by capricorn80; 10-31-2006 at 09:48 AM.
 
Old 10-31-2006, 10:30 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 10-31-2006, 11:00 PM   #12
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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
 
Old 11-01-2006, 02:07 AM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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)
 
Old 11-01-2006, 03:25 AM   #14
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
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 .
 
Old 11-01-2006, 04:51 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply



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.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 03:27 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM
troubles with NS2.26 installation Pulce Linux - Software 1 06-11-2007 12:42 AM
ns2 installation problem in FC5 deep_jyotsingh Linux - Software 4 10-01-2006 06:17 PM
how to set path? here a meet the problem with ns2 installation cain_eve Linux - Newbie 12 12-16-2004 05:09 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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