1832274 Members
2355 Online
110041 Solutions
New Discussion

swinstall problem

 
SOLVED
Go to solution
Jun Zhang_4
Regular Advisor

swinstall problem

The command I used is,
swinstall -s /path/AP014 Authen-PAM
where AP014 is a bundle created with,
swpackage -s authen.psf @ /path/AP014
within the authen.psf, a postinstall script is with the following content,
PATH=${SW_PATH}:/usr/bin:/opt/perl/bin:/usr/local/bin:/usr/contrib/bin
export PATH
cd /usr/local
gunzip -c Authen-PAM-0.14.tar.gz | tar xvf -
cd Authen-PAM-0.14
perl Makefile.PL
make
make install
The swinstall error message is listed bellow.
The first line listed is the result of the command,
perl Makefile.PL
so perl is found and is being used until that line, and then it no longer being located, otherwise, the "0" should be "perl". The strange thing is that perl is really under /opt/perl/bin. The program looked, but didn't see.
///// Message for swagent.log
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/lbin/sw/bin /var/adm/sw/sbin /sbin /usr/bin /usr/ccs/bin /usr/b
in /opt/perl/bin /usr/local/bin /usr/contrib/bin /opt/perl/bin)
Writing Makefile for Authen::PAM
sh: 0: not found.
*** Error exit code 127

Stop.
sh: 0: not found.
*** Error exit code 127

Stop.
* Running install clean command /usr/lbin/sw/install_clean.
NOTE: tlinstall is searching filesystem - please be patient
NOTE: Successfully completed

* Beginning the Configure Execution Phase.

* Summary of Execution Phase:
* 1 of 1 filesets had no Errors or Warnings.
* The Execution Phase succeeded.
///////

Jun
Food lover
2 REPLIES 2
Pratyush Paul_1
Valued Contributor
Solution

Re: swinstall problem

Hi -

You trying to compile something thru swinstall. It is not going to work. Make/Configure etc have lots of enviroment variables in place, which probably is not set in your system. Hence the make and the perl module is going to fail. If you really want to make this product this is how you have to proceed.

# configure; make ; make test; make install
# create product.psf ( put all the diretcories files executables etc )
# swpackage -p -vv -s product.psf @ /depot/your_product
#swreg -l depot @ /depot/your_product

#swinstall -s /depot/your_product

And it will work. Please do not include make/make install inside your post-installscript, it is going to fail.

Thanks

Pratyush
Die Hard
Jun Zhang_4
Regular Advisor

Re: swinstall problem

Pratyush,
I realized owing points to you, and here I sent.

Jun Z
Food lover