How to Fix “MISSING: /usr/lib/libstdc++.so.6” Zimbra Installation on CentOS 6.2 x86_64

Share this Article :

Questions :
When i try to install Zimbra 7.1.4 on linux CentOS 6.2 server, i got the following error message and cannot proceed the zimbra installation. How can i fix this ?

MISSING: /usr/lib/libstdc++.so.6
[[email protected] zcs-7.1.4_GA_2555.RHEL6_64.20120105094542]# ./install.sh --platform-override

Operations logged to /tmp/install.log.2145
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra_public_eula_2.1.html

Do you agree with the terms of the software license agreement? [N] y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.7.4p5-7
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     MISSING: /usr/lib/libstdc++.so.6
Checking for suggested prerequisites...
     FOUND: sysstat
     FOUND: sqlite

###ERROR###

One or more prerequisite packages are missing.
Please install them before running this installer.

Installation cancelled.

Tested Workarounds :
I think this is bug that need to be fix.
/usr/lib/ = Library for CentOS 32 Bit
/usr/lib64/ = Library for CentOS 64 Bit

I have two workarounds for this issue. If you have any suggestions and recommendations and corrections, please do let me know. By the way, i have tested both workaround, it workings perfectly on my zimbra lab server.

Workaround 1 :
Create symbolic link to the following file :

[[email protected] ~]# ln -s /usr/lib64/libstdc++.so.6 /usr/lib/libstdc++.so.6

Verify the created symbolic link :

[[email protected] ~]# ls -l /usr/lib/libstdc++.so.6
lrwxrwxrwx. 1 root root 25 Mar 31 20:30 /usr/lib/libstdc++.so.6 -> /usr/lib64/libstdc++.so.6

Workaround 2 :

Download libstdc++ 32 bit installer :

[[email protected] ~]# wget http://centos.ipserverone.com/centos/6.2/os/i386/Packages/compat-libstdc++-33-3.2.3-69.el6.i686.rpm
[[email protected] ~]# wget http://centos.ipserverone.com/centos/6.2/os/i386/Packages/compat-libstdc++-296-2.96-144.el6.i686.rpm
[[email protected] ~]# wget http://centos.ipserverone.com/centos/6.2/os/i386/Packages/libstdc++-4.4.6-3.el6.i686.rpm
[[email protected] ~]# wget http://centos.ipserverone.com/centos/6.2/os/i386/Packages/libstdc++-devel-4.4.6-3.el6.i686.rpm
[[email protected] ~]# wget http://centos.ipserverone.com/centos/6.2/os/i386/Packages/libstdc++-docs-4.4.6-3.el6.i686.rpm

Install the rpm packages :

[[email protected] ~]# rpm -ivh compat-libstdc* libstdc++* --nodeps
Preparing...                ########################################### [100%]
   1:libstdc++              ########################################### [ 20%]
   2:libstdc++-devel        ########################################### [ 40%]
   3:libstdc++-docs         ########################################### [ 60%]
   4:compat-libstdc++-33    ########################################### [ 80%]
   5:compat-libstdc++-296   ########################################### [100%]

Verify the libstdc installed packages exist in /usr/lib :

[[email protected] lib]# pwd
/usr/lib
[[email protected] lib]# ls | grep libstdc
libstdc++-3-libc6.2-2-2.10.0.so
libstdc++-libc6.2-2.so.3
libstdc++.so.5
libstdc++.so.5.0.7
libstdc++.so.6
libstdc++.so.6.0.13

One Response

  1. Paul van Noort

Leave a Reply