Operating System - HP-UX
1822012 Members
4184 Online
109639 Solutions
New Discussion юеВ

Re: Perl install problem on HP-UX11.01

 
SOLVED
Go to solution
john_611
Occasional Advisor

Perl install problem on HP-UX11.01

The system already installed Perl 5.004 version.
I'm tring to build a Perl 5.8.0 version on HP-UX11.01 (Workstation B180)..But installed Perl software doesn't work and
come out follow error message...

$ perl
/usr/lib/dld.sl: Can't find path for shared library: libsec.2
/usr/lib/dld.sl: No such file or directory
Abort(coredump)

I putted the software at /usr/local and type
< swinstall -s "/usr/local/xxxxx" perl > command..

How do i correctly build a Perl software and how can i fix that problem...?

Please...give me a information....
Thanks..

24 REPLIES 24
Laurie Gellatly
Honored Contributor

Re: Perl install problem on HP-UX11.01

Why not pick up the depot from:
http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.0/
and then use swinstall to install it.
Sounds like that would be a simpler thing
for you to do.
HTH ...Laurie :{)
If you're not using OverTime, you're doing overtime!
Vijaya Kumar_3
Respected Contributor

Re: Perl install problem on HP-UX11.01


OR even you can download the source if u have a C compiler installed. But i like depot with seperate paths, may be /usr/local/perl580

btw, did you try correctly setting the variable LD_LIBRARY_PATH...


-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: Perl install problem on HP-UX11.01

if u installed perl 58 in /usr/local, u may need to set LD_LIBRARY_PATH to ur correct library paths like

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/perl/lib: like this

try finding dld.sl and set the directory in Load library path...

and try testing perl with

/usr/local/perl58/bin/perl -v

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

None of the above three answers will provide you with libsec.2 :)

Attached

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl install problem on HP-UX11.01

Someone's playing tricks with me. .tgz attachments not coming through

http://www.cmve.net/~merijn/libsec.2

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
doug hosking
Esteemed Contributor

Re: Perl install problem on HP-UX11.01

John, can we do a sanity check on the HP-UX release number? 11.01 doesn't sound right. Unless you managed to get a pre-release version of HP-UX somewhere along the line, I can't see how you would be running a version by that number.

Procura, I'm sure your intentions were good, but installing HP-UX software bypassing SD is likely to lead to inconsistencies on the system (swverify errors, lack of proper dependency checking, etc. at the very least).

libsec has been shipped with every version of HP-UX since 10.00. If it's not on the system, or if the version numbers don't match, it's probably a sign of a bigger problem that should be looked into before worrying about perl.

john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

HI, Doug Hosking..

I checked my HP-UX version again..
It's HP-UX 10.20 base...I was confused.. Because When I type "version" command, the message is "HP-UX 11.01" ..But Original HP-UX DAT tape is 10.20 basic HP-UX..So i re-installed the HP-UX 10.20 sofeware on my workstation, and i tried to get a Perl 5.6.x or 5.8.x version for HP-UX 10.20 base.. But I couldn't find the software...
Do you know where i can get the software..?
Please help me...
H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

Sure, got to my site :)

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://ww.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

Hi,procura and Doug Hosking !!!

Thanks for your helping..
But I don't know how to install the program and which is correct program...
I'm a beginner to learn the HP-UX..
My system version is following list..

$ version
Agilent 3070 Software Version 3070 05.00pd 1101 UX

$ perl -v

This is perl, version 5.004

Copyright 1987-1997, 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 5.0 source kit.

So, Please could you give me a information for the installation procedure and correct file....?

Thanks..
H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

The perl you are showing us the version of is located in /usr/contrib/bin and is soooooo old that noone on this forum will help you write suitable code for it

the perl you can fetch from my site (visit the "Perl" link in the upper right screen corner to see the installation instructions) is perl-5.8.2 for all hp-ux flavours I have access to. Fetch the at teh "Download" section and choose from the HP-UX 10.20 column

Be SURE that /opt/perl/bin precedes /usr/contrib/bin in your $PATH (edit /etc/PATH)

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Mehdi_1
Regular Advisor

Re: Perl install problem on HP-UX11.01

Hi

As Doug already mentioned, you must make sure your system have "libsec.2" already intstalled. you may have a problem if you can't find that library in your system even if you download perl from "Merijn" site.

To findout what version of HPUX you have, you can just type:

uname -a


Mehdi
doug hosking
Esteemed Contributor

Re: Perl install problem on HP-UX11.01

Let's back up a bit based on what we now know. Forgetting the 'version' command (which is not part of HP-UX but apparently part of some other software you got from Agilent, and therefore not meaningful in determining the HP-UX version), it sounds like you are running HP-UX 10.20. You can verify this with the 'uname -r' or 'uname -a' commands. Since you say you just reinstalled from the CD, I will assume you are running HP-UX 10.20.

Keep in mind that 10.20 dates back to the spring of 1996 - 7 1/2 years ago. HP has already stopped supporting this release, and open source developers are likewise paying less attention to it. For example, see

http://gatekeep.cs.utah.edu/hppd/answers/5-4.html

You will increasingly find that you will either have to upgrade to a newer version of HP-UX (if that is possible on your hardware) or be content with running an older version of whatever software you are interested in.

You indicate that you are getting error messages referring to libsec.2. libsec.2 did not exist until HP-UX 11.00. It was specifically created because there was a major change between 10.20 and 11.00 (i.e. a new threads model) that was not compatible with the older libsec.1.

The fact that you are getting complaints about libsec.2 strongly suggests that you are trying to install an 11.X version of perl on your 10.20 system, which would not work well. The general rule for installing software on an HP-UX system is that you can often install software for an older release on your system and have it work (10.20 perl on HP-UX 11.00, for example) but it is almost never a good idea to try to install software for a newer release on an older version of HP-UX (such as 11.00 perl on HP-UX 10.20).

Installing libsec.2 on your 10.20 system to try to work around this would also not work well, since it may be trying to do system calls that did not exist in 10.20, or using interfaces that changed in some other way between 10.20 and 11.00.

http://www.hpux.ws/merijn/#Perl appears to have 10.20-compatible perl 5.8.0 binaries
(see http://www.hpux.ws/merijn/perl-5.8.0-gcc-3.2-10.20-pa11-ora.tbz) but you may have to get bzip2 from that page first so you can uncompress it.

john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

Hi..

My system already has Perl5.004 version on HP-UX10.20 ..So, I want to upgrade the PERL version to 5.8.0..
I installed the Perl5.8.0 version at /opt/perl5_8 directory by using the , and directory..
And then i checked the PERL version using < perl -v > command, the version is still 5.004 version...

so i ran the perl5.8.0 file in the /opt/perl5_8/bin directory, the error message is coming out as following list.
- /usr/lib/dld.sl:Can't open shared library:/usr/lib/libpthread.sl
- /usr/lib/dld.sl:No such file or directory
About(coredump)

So, I installed the < Gnu/pth-1.4.1> file againg to my system... But same error message is come out..

If you have a infomation, please give me...
Thanks..


john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01


So, Do i need remove the old perl(version 5.0.0.4) software?.. If need to remove the software, how to remove the old version software..? Please give me a information...
john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

My big problem is that i need to run attached scripter on the perl program..
It cann't run on the perl5.0.0.4 version..
If you can fixed the problem of that scripter.. please help me..

doug hosking
Esteemed Contributor

Re: Perl install problem on HP-UX11.01

Again, you're trying to mix incompatible versions. You're trying to put an 11.00 version of perl on a 10.20 system. This is all but guaranteed to fail miserably. The 11.x binaries contain fundamental assumptions that the underlying OS has features that simply did not exist in 10.20 and that can't be patched into it in any remotely rational way.

11.00 supported many new features, including threads. To get that support required very major changes to both the kernel and to many commands/libraries. You cannot fix this by just installing the libpthread libraries or any other user-space fixes. You must find a 10.20-based version of the version of perl that you are trying to run OR upgrade your operating system to 11.00 or later OR settle for an older version of perl. There really aren't any other reasonable choices.

If you try to use the 11.X based perl binaries that you are trying you will chase a seemingly endless series of problems. You have already seem the libsec and libpthread problems. There are many others that you will trip over if you keep trying to fix this one step at a time. It's not worth the effort and frustration.

If there were a sane way to do this we'd be happy to help you, but this is sort of like trying to install a turbocharger on a horse. No matter how many adapters you get or how many experts you consult, it's just not going to work very well. :-) You're much better off upgrading from a horse to a car before trying to install the turbocharger.


john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

Hi..

Thank you for your advise..
But I can't upgrade the HP-UX version...
Because the system is not our system..
I just run the scripter in my office.. and then release the result and scripter to customer... So i can't upgrade..

Could you see the attached file?..
If you can run the scripter, could you fix the problem... i really need somebody help...
H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

john, /opt/perl5_8 wil not do, it has to be /opt/perl sorry

A symlink might help, but the module just looks for /opt/perl, because that is the way it is compiled.

There *is* however a workaround: setting $PERL5LIB but it is a long string to set

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
doug hosking
Esteemed Contributor

Re: Perl install problem on HP-UX11.01


Hopefully someone else can help with the script debugging. I'm much less familiar with perl than with HP-UX internals (and also very busy with other fires today). But I'll bet plenty of other folks reading this are avid perl users and would be willing to take a stab at helping to debug the script.
H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

First try -w

lt09:/home/merijn 106 > perl -c !$
perl -c hex.pl
hex.pl syntax OK
lt09:/home/merijn 107 > perl -cw !$
perl -cw hex.pl
Unquoted string "history" may clash with future reserved word at hex.pl line 30.
Unquoted string "history" may clash with future reserved word at hex.pl line 100.
Value of construct can be "0"; test with defined() at hex.pl line 366.
Unquoted string "history" may clash with future reserved word at hex.pl line 397.
Unquoted string "history" may clash with future reserved word at hex.pl line 399.
Unquoted string "history" may clash with future reserved word at hex.pl line 401.
hex.pl syntax OK
lt09:/home/merijn 108 >

# perl -Mstrict -wc hex.pl

will generated even more warnings/errors

But let's start with the first warning:

open(history, '<', $datFile) || die("Cannot open history file.");

printf , "\nPlease enter Serial Number of BVP shelf (case sensitive)\n";
printf , "or \"power upgrade\" string followed by key : ";
$ss1 = ;
chop($ss1);

Several errors here. I'll just refrase and it's up to you to change the rest

open my $history, "< $datFile" or die "Cannot open history file $datFile: $!.";

print STDOUT "\nPlease enter Serial Number of BVP shelf (case sensitive)\n",
"or \"power upgrade\" string followed by key : ";
chomp (my $ss1 = scalar );

1. in printing to file handles, you do *not* separate the handle from the rest of the arguments with a comma
2. the caret operator () is for *reading* from a filehandle, not for writing to it
3. printf should only be used if the *format* you pass contains format specifiers like %d, %s and such, otherwise thou should use print, because there is nothing to be formatted
4. Thou shall not use chop. safe chop (or chomp) is the only - and fastest - way to safely chop of line endings ($/)
5. Filehandles should be either all uppercase (HISTORY would be OK), or lexical variables

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

procura...

I have a error message when i ran the PERL script...It's some different message between your message and my message..

Attached is my error message..

Could you check the Error_message file and PERL Script?...

I really thank you for your helping...

Thanks..

H.Merijn Brand (procura
Honored Contributor

Re: Perl install problem on HP-UX11.01

No I won't. The error messages show that you did not change your script according to my rules 1..4, which, with an error in almost every line, will make it generate the errors you get.

first go by the rules, if you have changed all 'printf , "...' to 'print XXX "...' (no angle brackets, no comma, no f, upper case only or lexical handles), and all chops to chomps, and it is -w free of warnings, then we can talk further.

Use strict;
use warnings;
use diagnostics;

Enjoy, Have FUN! H.Merijn [ who is not about to write other peoples scripts ]
Enjoy, Have FUN! H.Merijn
john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

I modified the PERL script according to PROCURA's advise..
Attacehed is modified script...

But, I have another error as the following message..

Please check the attached script and fix for me....

$ perl bvpbp.pl bvpbp.dat f1 f2 f3
"my" variable $binFile masks earlier declaration in same scope at bvpbp.pl line
348.
"my" variable $history masks earlier declaration in same scope at bvpbp.pl line
386.
Can't use an undefined value as filehandle reference at bvpbp.pl line 30.
$
$ perl -c bvpbp.pl
"my" variable $binFile masks earlier declaration in same scope at bvpbp.pl line
348.
"my" variable $history masks earlier declaration in same scope at bvpbp.pl line
386.
bvpbp.pl syntax OK
$
$ perl -cw bvpbp.pl
Value of construct can be "0"; test with defined() at bvpbp.pl line 77.

"my" variable $binFile masks earlier declaration in same scope at bvpbp.pl line
348.
Value of construct can be "0"; test with defined() at bvpbp.pl line 355
.
"my" variable $history masks earlier declaration in same scope at bvpbp.pl line
386.
Name "main::binFile" used only once: possible typo at bvpbp.pl line 434.
bvpbp.pl syntax OK
$

Thanks..

john_611
Occasional Advisor

Re: Perl install problem on HP-UX11.01

Attached is PERL script