Operating System - HP-UX
1834935 Members
2352 Online
110071 Solutions
New Discussion

Re: swinstall fails on postinstall script

 
Jun Zhang_4
Regular Advisor

swinstall fails on postinstall script

Hi,
I prepared a psf for creating a depot, which is done by,
swpackage -s psffile @ /path/depotname
This step is ok, but the following step failed at execution phase,
swinstall -s /path/depotname prodname
with the message in the /var/adm/sw/swagent.log file,
+++++message start
config.status: PAM_config.h is unchanged
Running '0 -I/opt/perl/lib/5.6.1 /opt/perl/lib/5.6.1/ExtUtils/xsubpp -v 2>&1' ex
its with status 16777215 at (eval 35) line 17.
Running '0 /opt/perl/lib/5.6.1/ExtUtils/xsubpp temp000 2>&1' exits with status 1
6777215 at (eval 35) line 43.
Unable to find a perl 5 (by these names: perl miniperl perl perl5 perl5.6.1, in
these dirs: /usr/bin /usr/local/bin /opt/perl/bin /opt/perl/bin)
Writing Makefile for Authen::PAM
sh: 0: not found.
*** Error exit code 127
+++++message cut here
If I run the postinstall script manually, it will succeed, so perl is there. I need to know why the '0' came up instead of some command, and what swinstall does differently in invoking the script than the manual way.


Jun

Food lover
1 REPLY 1
Siem Korteweg
Advisor

Re: swinstall fails on postinstall script

The install-scripts (pre/post) run in a "limited" environment. The PATH variable is set before the scripts are run. You have to extend the PATH-variable in your postinstall to access perl and other tools.