1837981 Members
1860 Online
110124 Solutions
New Discussion

Re: Perl ..

 
someone_4
Honored Contributor

Perl ..

Hello guys,
I have been reading up on perl on HPUX
but I am yet to find steps on where to find it and how to install it on my server. Is there a version already compliled that I can get from HP?
any help on this issue would be good..
11 REPLIES 11
Kofi ARTHIABAH
Honored Contributor

Re: Perl ..

Richard:

You can download a copy of perl for HPUX from the software porting and archive centre:
http://hpux.ee.ualberta.ca/hppd/hpux/Languages/perl-5.6.0/

There are lots of useful software at the site :
http://hpux.cs.utah.edu/

good luck.
nothing wrong with me that a few lines of code cannot fix!
Patrick Wallek
Honored Contributor

Re: Perl ..

The URLs that Kofi references is the way to go. They do have precompiled versions in a depot format that you can download, gunzip, and install using swinstall.

You should check and make sure you don't have an old version of perl already on your system. HP comes with Perl 4.something and it is located in /usr/bin I think. The perl binary in the package you download and install will be located in /opt/perl5/bin. I made a symbolic link so that /usr/bin/perl points to /opt/perl5/bin/perl so that I know I am using the correct version.
someone_4
Honored Contributor

Re: Perl ..

So this should be an easy thing to do.
Am I going to need a C complier or anything
Patrick Wallek
Honored Contributor

Re: Perl ..

No, no C compiler needed. As long as you download the precompiled depots you can just gunzip it, run swinstall and point swinstall to the depot file.

Here the specific link to perl 5.6.0 on the Utah mirror of the HP-UX porting center:
http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.0/
someone_4
Honored Contributor

Re: Perl ..

when I do
perl -v this is what i get.

This is perl, version 4.0

$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36

Copyright (c) 1989, 1990, 1991, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
/usr/contrib#
someone_4
Honored Contributor

Re: Perl ..

and i did the swinstall .. and when i do the swlist i see that it did install
Patrick Wallek
Honored Contributor

Re: Perl ..

Perl 4.0 is the version that comes with HP-UX. If you do a 'which perl' you will see that it is probably in /usr/bin. You should move this to perl.old. Then download the new perl, version 5.6.0, install it and then do a 'ln -s /opt/perl5/bin/perl /usr/bin/perl' so that you will be using the version.

You do not need to do anything special with the perl that is already installed before you install the new stuff.
someone_4
Honored Contributor

Re: Perl ..

I do not see it in usr/bin
do I have to do it in that order?
Because I have already downloaded and installed (with swinstall) perl 5.6.
Patrick Wallek
Honored Contributor

Re: Perl ..

You've got an old version of perl somewhere.

Try the following:

which perl

or

find / -name perl -type f -exec ll {} \;

The 'which perl' should tell you where the perl is that it is using when you type perl at the prompt. The find statement will find all occurrences of perl that are files and do an ll on them.

Have you looked in /opt to see if you have a perl5 directory? If not, do so. I suspect it is there. The perl executable should be in /opt/perl5/bin. If it is there then another option you have is to make your path statement so that /opt/perl5/bin is at the beginning, thus making it so that the new perl is seen first.
Gregory Fruth
Esteemed Contributor

Re: Perl ..

I believe the perl4 that comes with HP-UX is in
/usr/contrib. It's there to support the q4 crash
dump analyzer (also in /usr/contrib).

John Bolene
Honored Contributor

Re: Perl ..

Perl at least with UX 10.20 is in /usr/contrib/bin/perl.
You have to swinstall the new version, take the old version out of /usr/contrib/bin, and add the new version's path to /etc/PATH.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com