Operating System - HP-UX
1834009 Members
4235 Online
110063 Solutions
New Discussion

Security Patch Check: Perl

 
SOLVED
Go to solution
Karl Balsmeier
Advisor

Security Patch Check: Perl

I am trying to install Perl on an 11i machine so that Security Patch Check will work.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA

I am getting an error:

root@pegasus:/opt/sec_mgmt/spc/bin # security_patch_check -r
/opt/sec_mgmt/spc/bin/security_patch_check: /opt/perl/bin/perl: Execute permission denied.
/opt/sec_mgmt/spc/bin/security_patch_check[100]: < 5 : Syntax error

How do I fix this? I am trying to install the PerlIPF version on 11i. I tried to modify the perms to 777 and still no dice...

Attached is a 'tail' of my swagent.log.

-karl
"Unix is the Net"
2 REPLIES 2
Bill Douglass
Esteemed Contributor
Solution

Re: Security Patch Check: Perl

Your log file indicates that the perl installed failed, becuase it detected a version of perl installed in /usr/local. See the ERROR lines from your log, which I have reproduced, below:



* A version of the bundle exists: "perl,l=/usr/local,r=5.8.0".
ERROR: A version of bundle "perl,r=D.5.6.1.D" is already installed in another location (see previous lines). Installing this
version will create multiple installed versions.
You must either remove that bundle or change the
"allow_multiple_versions" option to "true".

* Summary of Analysis Phase:
ERROR: Exclude perl,r=D.5.6.1.D


* Summary of Execution Phase:
ERROR: Skipped (in analysis) perl,r=D.5.6.1.D
* 4 of 4 filesets had no Errors or Warnings.
ERROR: The Execution Phase had errors. See the above output for
details.


I don't think you have a working perl installed in /opt. Check your installed software using swlist; you should see a perl bundle installed in /usr/local.

If you have other perl scripts depending on /usr/local/perl. then you could try link that to /opt/perl. This may not work thought, depending on what perl modules you have installed and what modules the security patch scripts needs.

Another options is to uninstall the existing perl package, then try installing your perl bundle. If you don't have other perl scripts depending on specific modules or a specific version of perl, this should be OK.

Finally, your can set the "allow_multiple_options" variable to true when installing, and have both versions of perl on your system. I don't much care for having multiple perl installs on one machine, it might make for a quick, interim solution.
Steven E. Protter
Exalted Contributor

Re: Security Patch Check: Perl

Sounds like you need to reinstall perl.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL


save it somewhere.

swinstall -x reinstall=true -s /tmp/perl.depot \*


I think this is a pre-requisite of security_patch_check.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com