How can I resolve this DB2 install file libstdc++.so.5 is not found on the system error?

Hi all,
My environment is Vista 64bit, VMware running Red Hat Enterprise Linux server machine, DB2v9.5 64bit.
While trying to install DB2 in this linux machine, I am getting a "The required library file libstdc++.so.5 is not found on the system". Doing a ls /usr/lib | grep libstdc* shows libstdc++.so.6, and libstdc++.so.6.0.5.
Where can I find libstdc++.so.5, download and how do I install it?

Can anyone help with this?

Thanks

EnudaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenData Warehouse Architect / DBACommented:
Hi enuda,

Depending on which version of linux is installed, you may be able to just create a symbolic link to the existin gC++ library.  If not, you'll have to download and install the compatible library.

Do this:

  ls -la /usr/lib/libstd*

You'll get something like this:

-rwxr-xr-x 1 root root 721364 2008-07-15 14:09 /usr/lib/libstdc++.so.5.0.6

Try creating a symbolic link to it:

  ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5


Then run the install again.  If it still fails, it's because the delta between your installed version of libstdc++ is too great.  (There are some required constants in the compatible versions.)

If that doesn't work, post back and I'll help you find the install files.


Good Luck,
Kent
0
Kent OlsenData Warehouse Architect / DBACommented:

You can download the compatible libstdc++ install package here:

  http://rpmfind.net/linux/rpm2html/search.php?query=libstdc%2B%2B.so.5&submit=Search+...&system=&arch=

I really need to bookmark this page.  It takes me about 10 minutes to find it every time that I need it..  :)


Kent
0
EnudaAuthor Commented:
Hello kdo,
I have tried your recommendation and the install still failed with the same ""The required library file libstdc++.so.5 is not found on the system".

I visited the link you gave and I was even more confused. I found one entry for Red Hat Linux 9
"libstdc++-3.2.2-5.i386.html GNU Standard C++ Library Red Hat Linux 9 for i386 libstdc++-3.2.2-5.i386.rpm" and don't know if this rpm is the right one for my version of RedHat linux. I have enterprise linux 5 64bit.
Finally, assuming this is the right one or any other that you may recommend, do I just download it and follow what steps to install it?
Thanks
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Kent OlsenData Warehouse Architect / DBACommented:
Hi Enuda,

I've got DB2 running on Fedora 10 Beta, 64-bit version.  It took me a while to get the right library and link it, but the process should be the same for Fedora 9.

One of the links on that page should be to here:

  http://rpmfind.net//linux/RPM/fedora/9/x86_64/compat-libstdc++-33-3.2.3-63.i386.html

That's just for verification.  :)

On your linux box, as root enter the command:

  yum -y install compat-libstdc++-33.x86_64

That should install the library /usr/lib/libstdc++.so.5.0.7.  (Just in case, make sure that it's there.)  Then create a link to it

  ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5

At this point, the DB2 installation should run just fine.


Kent
0
EnudaAuthor Commented:
Ok, I will do that. But looking at /usr/lib/libstd*, I found this:
lrwxrwxrwx 1 root root     27 Nov 12 05:29 /usr/lib/libstdc++.so.5 -> /usr/lib/libstdc++.so.6.0.5
lrwxrwxrwx 1 root root     18 Nov  9 20:42 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.8
-rwxr-xr-x 1 root root 925520 Jul 10  2007 /usr/lib/libstdc++.so.6.0.8

Does this mean libstdc++.so.5 exist or this is just "mirage"? Symbolic link?


0
EnudaAuthor Commented:
kdo,
I have just tried yum -y install compat-libstdc++-33.x86_64 and I got the following:

[root@localhost ~]# yum -y install compat-libstdc++-33.x86_64
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: compat-libstdc++-33.x86_64
Nothing to do
[root@localhost ~]#

It appears I am missing something...any clue what I need to have?
0
Kent OlsenData Warehouse Architect / DBACommented:
Ok.  Perhaps the library is already installed.  Let's find out.  :)

As root, run this and post the results:

  find / -name "libstdc++*"


Kent
0
EnudaAuthor Commented:
kdo,
There is no libstdc++.so.5 listed. I think what happened is that I did a symbolic link as you suggested yesterday: ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5. It appears the library is not installed.

Here is what I found:

[root@localhost ~]# find / -name "libstdc++*"
/usr/lib/vmware-tools/lib32/libstdc++.so.6
/usr/lib/vmware-tools/lib32/libstdc++.so.6/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib64/libstdc++.so.6

0
Kent OlsenData Warehouse Architect / DBACommented:
Yeah,

Version 6 of the library is not compatible with version 5.  We're going to have to install the right library.  I don't remember if the 64-bit library or 32-bit library is required, so we might have to experiment.  (No worries -- it shouldn't affect anything else.)

Back on this page:

  http://rpmfind.net/linux/rpm2html/search.php?query=libstdc%2B%2B.so.5&submit=Search+...&system=&arch=

Is the link for Fedora 9 for x86_64.  Let's start there.  The link on the right side of the page is to the ftp site.  Let's ftp the rpm to your server.

  ftp://rpmfind.net/linux/fedora/releases/9/Everything/x86_64/os/Packages/compat-libstdc++-33-3.2.3-63.i386.rpm

Once the library is downloaded, let yum install it

  yum -y install {path_name/compat-libstdc++-33-3.2.3-63.i386.rpm}


Kent
0
EnudaAuthor Commented:
Ok, let me work on this...be back shortly...
0
EnudaAuthor Commented:
kdo,
Here's the result from yum install:

[root@localhost anyanso001]# yum -y install compat-libstdc++-33-3.2.3-63.i386.rpm
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Examining compat-libstdc++-33-3.2.3-63.i386.rpm: compat-libstdc++-33 - 3.2.3-63.i386
Marking compat-libstdc++-33-3.2.3-63.i386.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package compat-libstdc++-33.i386 0:3.2.3-63 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 compat-libstdc++-33     i386       3.2.3-63         compat-libstdc++-33-3.2.3-63.i386.rpm  716 k

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 716 k
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2

Any of this make sense to you?

0
Kent OlsenData Warehouse Architect / DBACommented:
Yeah.  :)

Let's see what was put where.  Run this and post the answers:

   find /usr -name "libstdc++*"


0
EnudaAuthor Commented:
No such luck! It does not appear to have installed anything...

[root@localhost anyanso001]# find /usr -name "libstdc++*"
/usr/lib/vmware-tools/lib32/libstdc++.so.6
/usr/lib/vmware-tools/lib32/libstdc++.so.6/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib64/libstdc++.so.6
[root@localhost anyanso001]#

0
Kent OlsenData Warehouse Architect / DBACommented:
I really don't know what's going on here.  I installed libstdc++-33-3.2.3-64.x86_64 from this same site, and everything is fine.

Try installing the rpm with that name.  It's labelled 'Compatibility standard C++ libraries Fedora Development for x86_64


Kent
'
0
EnudaAuthor Commented:
Ok, I'll get that done now...be back shortly
0
EnudaAuthor Commented:
kdo,
I've gone thru the same cycle we did with the earlier package and nothing has changed. I got the same result as before as shown below. Something is weid about this.

[root@localhost Desktop]# yum -y install compat-libstdc++-33-3.2.3-64.i386.rpm
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Examining compat-libstdc++-33-3.2.3-64.i386.rpm: compat-libstdc++-33 - 3.2.3-64.i386
Marking compat-libstdc++-33-3.2.3-64.i386.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package compat-libstdc++-33.i386 0:3.2.3-64 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 compat-libstdc++-33     i386       3.2.3-64         compat-libstdc++-33-3.2.3-64.i386.rpm  704 k

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        
Total download size: 704 k
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Public key for compat-libstdc++-33-3.2.3-64.i386.rpm is not installed


[root@localhost Desktop]# find /usr -name "libstdc++*"

/usr/lib/vmware-tools/lib32/libstdc++.so.6
/usr/lib/vmware-tools/lib32/libstdc++.so.6/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6
/usr/lib/vmware-tools/lib64/libstdc++.so.6/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib64/libstdc++.so.6


Have any other idea I can try? I'll do some more research or maybe get another distro with the full complement of packages?
0
Kent OlsenData Warehouse Architect / DBACommented:
Hi Enuda,

Try the 32-bit version of the library.  I may be confused in continually sending you to the 64-bit version.

  ftp://fr.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/libstdc++-3.2.2-5.i386.rpm


Kent
0
EnudaAuthor Commented:
kdo,
The latest try also failed. The result follows:

[root@localhost Desktop]# yum -y install libstdc++-3.2.2-5.i386.rpm
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Examining libstdc++-3.2.2-5.i386.rpm: libstdc++ - 3.2.2-5.i386
libstdc++-3.2.2-5.i386.rpm: does not update installed package.
Nothing to do

What a frustrating thing this is...
0
Kent OlsenData Warehouse Architect / DBACommented:

Let's see if one of the linux gurus will chime in.

I know that every time I need to install libstdc++.so.5 I have to experiment depending on the linux distro -- It's pointless to keep you jumping in circles.  

(It really shouldn't be this tough.)


Kent
0
EnudaAuthor Commented:
kdo,
Now don't laugh...I took a break because I developed a whopper of a headache...No, it not because of this install problem.

Ok, I'll keep trying and thanks for your help...
0
Kent OlsenData Warehouse Architect / DBACommented:
Hi Enuda,

Are you running a Red Hat or Fedora system?  The messages suggest that it's Red Hat.

Looking back through the output from *yum install* that you posted, I don't see where it actually did an installation.  The files were downloaded, but I don't see an installation confirmation.


Kent
0
EnudaAuthor Commented:
Yep, there was no installation confirmation. But what are you thinking went wrong? Something I should check? This is all new to me, so, share your thoughts, if you please...
0
EnudaAuthor Commented:
ps: I am running a Red Hat enterprise linux 5 64-bit.
0
Kent OlsenData Warehouse Architect / DBACommented:
Let's see what is running that's "almost" the right library.

Run this:

  yum list installed | grep libstdc


0
EnudaAuthor Commented:
kdo,
I have two VM running RHEL 5 64bit and both shows the following installed:
libstdc++.i386           4.1.2-14.el5
libstdc++.x86_64     4.1.2-14.el5
0
Kent OlsenData Warehouse Architect / DBACommented:
Ok.  I don't have any .i386 packages installed.  I have:

compat-libstdc++-33.i386            3.2.3-64                           installed
compat-libstdc++-33.x86_64          3.2.3-64                           installed
libstdc++.x86_64                    4.3.2-7                            installed
libstdc++-devel.x86_64              4.3.2-7                            installed

Note that the two compat-* libraries are version 3.2.3.  This is what we're going to need to find and install to make the DB2 installation happy.

Start here:

  http://rpmfind.net//linux/RPM/fedora/9/x86_64/compat-libstdc++-33-3.2.3-63.i386.html

The page title is the link to the ftp URL for the package.

  ftp://fr.rpmfind.net/linux/fedora/releases/9/Everything/x86_64/os/Packages/compat-libstdc++-33-3.2.3-63.i386.rpm

  Download and install it.


Kent
0
EnudaAuthor Commented:
kdo,
Thanks for your response. I had stepped out for a few minutes...ok, now I'll get to work and implement this...be back soon as I am done with it...
0
EnudaAuthor Commented:
Kdo,
Hope all is well. I downloaded and tried to install the package and got the following. I tried yum and rpm as follows:

[root@localhost Desktop]# yum -y install compat-gcc-32-3.2.3-63.src.rpm

Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Examining compat-gcc-32-3.2.3-63.src.rpm: compat-gcc-32 - 3.2.3-63.ppc
Marking compat-gcc-32-3.2.3-63.src.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package compat-gcc-32.ppc 0:3.2.3-63 set to be updated
--> Running transaction check
--> Processing Dependency: /usr/lib64/libc.so for package: compat-gcc-32
--> Processing Dependency: bison for package: compat-gcc-32
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: compat-gcc-32
--> Processing Dependency: zlib-devel for package: compat-gcc-32
--> Processing Dependency: dejagnu for package: compat-gcc-32
--> Processing Dependency: /usr/lib/libc.so for package: compat-gcc-32
--> Processing Dependency: texinfo for package: compat-gcc-32
--> Processing Dependency: flex for package: compat-gcc-32
--> Finished Dependency Resolution
Error: Missing Dependency: /usr/lib64/libc.so is needed by package compat-gcc-32
Error: Missing Dependency: bison is needed by package compat-gcc-32
Error: Missing Dependency: glibc-devel >= 2.2.90-12 is needed by package compat-gcc-32
Error: Missing Dependency: zlib-devel is needed by package compat-gcc-32
Error: Missing Dependency: dejagnu is needed by package compat-gcc-32
Error: Missing Dependency: /usr/lib/libc.so is needed by package compat-gcc-32
Error: Missing Dependency: texinfo is needed by package compat-gcc-32
Error: Missing Dependency: flex is needed by package compat-gcc-32

Using RPM

[root@localhost Desktop]# rpm -iv compat-gcc-32-3.2.3-63.src.rpm | more >> rpm.txt
warning: compat-gcc-32-3.2.3-63.src.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

If you have other suggestion I am game to try them. I have to have this going somehow. I am going to continue research to find all this missing elements.

Thanks
0
Kent OlsenData Warehouse Architect / DBACommented:
Hi Enuda,

I'm concerned that none of the standard installation protocols have worked.  Still, I haven't given up.  :)

If you want to try a shortcut, I'll be glad to email you the library, which you can then install into the correct directory.  Just send me a note at the email address in my profile.


Kent



0
EnudaAuthor Commented:
Kdo,
Yes, I'll give it a try. Please send it along and let see what happens. Ok, I'll try and send a note.
The file is not huge is it?
0
EnudaAuthor Commented:
kdo,
I have sent a note to you.
0
EnudaAuthor Commented:
kdo,
Some questions: While installing Red Hat El 5, the install went thru only 2 out of 7 iso files on disk and reported successful install of the RHEL OS. Is this normal? I forgot to mention this before but that exactly how my installs have been right from the start several days ago! I am suspicious that this may have something to do with the missing libstdc++.so.5 members...now, I am afraid that if this is solved something else might popup...

Anyway to make the install program go thru the rest of the iso images? I am installing from disk...just some questions. I am going ahead anyway to see what happens...
0
EnudaAuthor Commented:
kdo,
What is the full name including extention of the file that you sent to me. I tried tar -jxvf libstdc

bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@localhost temp]#

I then tried tar -cz libstdc  and I got "gook" like
ý½Hý·L ÎýLýý`

               3ýý;ýýþýýýYýý*ýýI8ýJý»P>        ýýýý UýýýMýý ýý$ýý(ý !$8ý`ýDãLýýEY4ýý4ýýý4ýý=ýýý¯ý Oý$P
2ýýýýýýG’FýýýýýUýý*ýý(ýý ýýJý7ýýgý 3ýý@?7ýý6ýýýýýýýC’
                                                         ýýSG-3ýýFòýýýàºQýý.ýý=ýB
                                                                                     ýý±ýýýýý$
                                                                                                $ý½
                                                                                                   ýSýýýý_ý     ýý^ýýýý°?
ýýý"Ÿ<ýýýý<Rý                                                                                                            ý/:ý½ýOýýdýNýÀýýýý,ýºýýý ýýý/ýý?íý[ý1ýýýýýýýýGýCý
TýQý=ý:    ýýý°ýÀ4ý_ÆýýýýýýHýý'Eýb£ýÍýýýQý£ÏýQýýýý+ý1%      <ý-ýý!ýýýýý"ý      ý!ýýýýýýýýTý/ýý?Sýýýý"(ýý„
          ý±$ýýý4ýÍýý`ýý#ýýYqý ýýýCýSýO ý%;ýýý*|ý&ý[»,8°T2ýý+=I^‡ýýýýSýýýýýýý0ý<ß3Hý ý1`=;:ýý?ýýýýý;ýýDNBýZB<JýýýKýýý0ýRýýý1ýýý&ý
                                                                                                                                                       ¼ý?sý]ýý\ý_ýý>º
                                                                                                                     
Thanks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kent OlsenData Warehouse Architect / DBACommented:
Hi Enuda,

Did you ever get this resolved?  I've recently installed a new version FC10 and am having the same troubles that you did.  Apparently, the beta release of FC10 was compatible with the libstdc++ library from FC9, but the regular release is not.  One of the tasks in my queue is to find the correct library and get DB2 running on this server.

I suddenly have a lot more appreciation for what you've been through.
Kent
0
EnudaAuthor Commented:
Kdo,

Nope...never did. Other things took over. Imagine if I needed to move things to production and I have this kind of issue...
Anyway, if you do get a solution, do take a minute to share as I will be getting back to my testing in a few days...

Thanks for chipping in, kdo

Enuda
0
Kent OlsenData Warehouse Architect / DBACommented:
I'll bubble that up my priority list as I really do need to get that server configured.  I'll keep you posted as to the progress.

But right now there are a couple of Oracle alligators nipping at my heels.  :(

Kent
0
jackiechen858Commented:

I had same problem when trying to install db2 9.1 on my Centos 5.4 X86_64 today.  I found my machine has a libstdc++.so.6.0.8. I manually created a symbolic link to so.5, it didn't work.


I then installed compat-libstdc++-33.x86_64 and compat-libstdc++-33 ( you will get a warning if only install 64 bit library) by

yum install compat-libstdc++-33.x86_64
yum install compat-libstdc++-33


It worked. Your yum update probably is using Redhat network, that's the reason it failed "yum install".

now on my machine,  "rpm -ql compat-libstdc++-33.x86_64" shows
/usr/lib64/libstdc++.so.5
/usr/lib64/libstdc++.so.5.0.7

I can run db2setup now.












0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.