GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- postinstall script problem
Operating System - HP-UX
1847073
Members
5007
Online
110262
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 06:25 AM
10-16-2003 06:25 AM
postinstall script problem
In the postinstall script executed by swinstall, the command
perl Makefile.PL
generated Makefile. The variable PERL is assigned the value "0" in the Makefile, which caused the execution phase of swinstall to fail. The error message in /var/adm/sw/swagent.log is "perl is not found".
If "perl Makefile.PL" is executed manually, the PERL variable in Makefile has a value /opt/perl/bin/perl as expected.
I added
echo $PATH > /tmp/result
ll /opt/perl/bin/perl >> /tmp/result
in the postinstall script before the line
perl Makefile.PL
and run swinstall, the result is fine.
Can somebody help?
Jun
perl Makefile.PL
generated Makefile. The variable PERL is assigned the value "0" in the Makefile, which caused the execution phase of swinstall to fail. The error message in /var/adm/sw/swagent.log is "perl is not found".
If "perl Makefile.PL" is executed manually, the PERL variable in Makefile has a value /opt/perl/bin/perl as expected.
I added
echo $PATH > /tmp/result
ll /opt/perl/bin/perl >> /tmp/result
in the postinstall script before the line
perl Makefile.PL
and run swinstall, the result is fine.
Can somebody help?
Jun
Food lover
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 06:37 PM
10-16-2003 06:37 PM
Re: postinstall script problem
Within the sw session our usual PATH variable does not exist or will not work, I am not sure of which one...Many of the sw install scripts will get executed even before the PATH is set. Hence in all our sw scripts(configure, postinstall, preinstall and so on), we are expected to give the full paths. I guess the only path they can recognise is the /sbin.
Just try giving the whole path of perl within the sw script and then try the same.
Just try giving the whole path of perl within the sw script and then try the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 08:04 PM
10-16-2003 08:04 PM
Re: postinstall script problem
Or set your PATH variable in the post install script. When editing the file using vi type:
!!env | grep ^PATH=
It will put your current PATH in the file.
Same works for other variables too, of course.
It will put your current PATH in the file.
Same works for other variables too, of course.
Every problem has at least one solution. Only some solutions are harder to find.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP