1830372 Members
2160 Online
110001 Solutions
New Discussion

Perl Installation

 
Olebile
Frequent Advisor

Perl Installation

Hi Guys,

This may soud funny but i need some clarity on this one. How do I find where my software has been installed after running swinstall -s,

e.g

swinstall -s /tmp/perl.5.6.1.depot

where is perl software going to reside
Perfomance Monitoring is not always easy
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: Perl Installation

Hello,
you can check it when you install in the
swinstall---->actions--->target for the files

Else
once it is installed

you can go to sam and check it using the

sam--->software Management--Listed software--->perl5.6.1-->

you can go inside this to find where the software go installed.

Probably with this depot

it is installed in /usr/local
directory.

I did not find this depot getting installed properly.

Just get the stable.tar.gz from
www.perl.com/CPAN

download it.

do a gunzip on the gz file

extract using tar xvf "file"

just read the INSTALL file for the installation.
It works fine.

THanks



T G Manikandan
Honored Contributor

Re: Perl Installation

Just checked it out.

It is getting installed at

/opt/perl5

directory.

Thanks
Sridhar Bhaskarla
Honored Contributor

Re: Perl Installation

Hi,

Use swlist with -l file option.

swlist -l file -s /tmp/perl.5.6.1.depot

It will list out where the files are going to be installed.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ralph Grothe
Honored Contributor

Re: Perl Installation

With Perl it is very easy to find out where it got installed (even if you didn't install it from a depot but rather from the sources.

At the shell just type:

$ perl -V

and look for the contents of the array @INC

You also could issue this Perl one-liner:

$ perl -e 'print join "\n", @INC'
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
/opt/perl/lib/5.6.1
/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi
/opt/perl/lib/site_perl/5.6.1
/opt/perl/lib/site_perl


To find out where depots for HP-UX got installed in general you can do the following

# swlist -l product|grep -i perl
Perl5 B.5.6.1.C Perl for HP-UX
perl 5.6.1 perl


# swlist -l fileset perl
# Initializing...
# Contacting target "anonymous"...
#
# Target: anonymous:/
#

# perl 5.6.1 perl
perl.perl-MAN
perl.perl-RUN
perl.perl-SHLIBS


# swlist -l file perl.perl-RUN|head
# Initializing...
# Contacting target "anonymous"...
#
# Target: anonymous:/
#

# perl.perl-RUN
/opt/perl5/bin/a2p
/opt/perl5/bin/c2ph
/opt/perl5/bin/dprofpp
Madness, thy name is system administration