DB2 installation error: the required library file libstdc ++. so.5 is not found on the system.

Source: Internet
Author: User
Tags db2 installation

Most of the information on the Internet is the RPM package of compat-libstdc ++ installed on Redhat. The problem is that my machine has the file/usr/lib/libstdc ++. so.5 on it.

Finally, I found that my machine has both compat-libstdc ++-33-3.2.3-4.i386.rpm and compat-libstdc ++-33-3.2.3-4.x86_64.rpm,

This occurs because the installation command is yum install compat-libstdc ++ *. 32-bit and 64-bit are installed, and DB2 directly finds 32-bit,

Therefore, delete compat-libstdc ++-33-3.2.3-4.i386.rpm and reinstall compat-libstdc ++-33-3.2.3-4.x86_64.rpm.

In the future, do not use the * generic symbol on 64-bit machines. Run the yum list compat * command to install the full name of the 64-bit package.

There is also a package libaio-0.3.105-2.i386.rpm to do so, it is estimated that the dependency package.

The command is as follows:

Yum remove libaio-0.3.105-2.i386.rpm
Yum remove compat-libstdc ++-33-3.2.3-4.i386.rpm

Yum remove libaio-0.3.105-2.x86_64.rpm
Yum remove compat-libstdc ++-33-3.2.3-4.x86_64.rpm

Yum install libaio-0.3.105-2.x86_64.rpm
Yum install compat-libstdc ++-33-3.2.3-4.x86_64.rpm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.