HP PSP installation problem (zlib "missing")
Posted by jfjuneau on 2011/7/21 15:45:00
Hi,
I'm trying to install the HP ProLiant Support Pack for RHEL6 on CentOS 6 (x86_64). My server is an HP ProLiant DL 380 G7. All components installed successfully except the HP System Management Homepage (hpsmh)
If I try to install it manually (without the HP SUM utility) here is what I get:
[root@server Downloads]# rpm -Uvh hpsmh-6.3.0-22.x86_64.rpm
Preparing... ########################################### [100%]
This Red Hat Linux distribution is not supported.
Detected CentOS release
The zlib package or binaries are missing!
Please install the zlib-1.1.4 or later RPM package.
Required Packages are missing!
error: %pre(hpsmh-6.3.0-22.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping hpsmh-6.3.0-22
zlib is installed for i686 and x86_64, I also installed the devel packages but hpsmh can't find the libraries:
[root@vmdr-prd1 Downloads]# rpm -qa | grep zlib
zlib-devel-1.2.3-25.el6.i686
zlib-1.2.3-25.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
zlib-1.2.3-25.el6.i686
zlib-static-1.2.3-25.el6.x86_64
What bugs me is that I managed to get it working without problem with Scientific Linux 6 3 weeks ago. I formatted the server with CentOS 6 this week and now it won't install, I must have missed a software dependency somewhere but I can't find it. Thanks in advance!
JF

Re: HP PSP installation problem (zlib "missing")
Posted by lystor on 2011/7/21 17:08:04
Quote:
jfjuneau wrote:
What bugs me is that I managed to get it working without problem with Scientific Linux 6 3 weeks ago. I formatted the server with CentOS 6 this week and now it won't install, I must have missed a software dependency somewhere but I can't find it. Thanks in advance!
Hi
Verify all installed
zlib rpm packages:
Re: HP PSP installation problem (zlib "missing")
Posted by jfjuneau on 2011/7/21 17:35:23
Thanks for the quick reply! I didn't get any error from the command:
[root@vmdr-prd1 ~]# rpm -Va zlib\*
[root@vmdr-prd1 ~]#
I'm also not using any unofficial repositories. Only the "base", "extras" and "updates" repositories are enabled.
Re: HP PSP installation problem (zlib "missing")
Posted by jfjuneau on 2011/7/21 18:46:39
I finally found how to fix this. I extracted the installation script from the RPM file and I looked for the part where it would search for zlib:
if [ ! -f /usr/lib/libz.so.1 ]; then
ZLIB=1
echo The zlib package or binaries are missing!
echo Please install the zlib-1.1.4 RPM package.
fi
if [[ "$ZLIB" = '1' || "$EXPT" = '1' ]]; then
echo Required Packages are missing!
exit 1
fi
The script is looking for "libz.so.1" in "/usr/lib", but CentOS 6 installs this library in "/lib/". I made a symbolic link with the following command and everything works now:
ln -s /lib/libz.so.1.2.3 /usr/lib/libz.so.1
In my previous Scientific Linux 6 setup, the symbolic links must have been already there with the default installation, I don't know if it's a bug in the zlib packages from CentOS or in HP's installation script. Anyway, I hope it will help others if they run into the same problem!
Thanks!

Re: HP PSP installation problem (zlib "missing")
Posted by pschaff on 2011/7/21 21:39:46
Both CentOS-6 and SL6 have "/usr/lib/libz.so -> ../../lib/libz.so.1.2.3" and no /usr/lib/libz.so.1 link. Perhaps you fixed SL to make the installer happy and forgot about it.
Re: HP PSP installation problem (zlib "missing")
Posted by mgmartin on 2011/7/28 6:17:57
Thanks for the fix jfjuneau . Making the link worked for me.
I found the /usr/lib/libz.so link is created by installing the zlib-devel packages.
Re: HP PSP installation problem (zlib "missing")
Posted by rmsoftware on 2011/10/25 12:25:57
And for x86_64 this worked for me:
ln -s /lib64/libz.so.1.2.3 /usr/lib/libz.so.1
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=56&topic_id=32297