• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7659
  • Last Modified:

Does anyone know how to resolve a "warning: user mockbuild does not exist - using root" problem?

Hi all,
Iave been struggling to resolve a "file libstdc++.so.5 is not found on the system" problem. I have downloaded various compat-libstdc++-33.x86* packages and tried to install and failed several times.
Is there any red Hat Linux guru out there who can help with resolving this problem? The following is the error that I am getting running yum and also running 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


[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

I need some help ASAP guys...please help!!

Thanks
0
Enuda
Asked:
Enuda
  • 13
  • 9
  • 5
3 Solutions
 
LinuxNtwrkngCommented:
Looks like you don't have Mock installed

http://fedoraproject.org/wiki/Projects/Mock
0
 
EnudaAuthor Commented:
LinuxNtwrkng,
How do I get this Mock and install it? I have tried the link that you gave which took me to anothe page and the download link looks like this:

https://fedorahosted.org/mock/  has all the latest builds. It can be installed with "yum install mock".

To check out the current code:
git clone git://git.fedorahosted.org/git/mock.git mock

When I click on the link I get no response. What is "git clone git clone git://git.fedorahosted.org/git/mock.git mock ". Never saw that before.

Anyway, I can't get to Mock. Do you have another link for Mock?
0
 
LinuxNtwrkngCommented:
Did you try installing it via yum?  "yum install mock"
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
EnudaAuthor Commented:
LinuxNtwrkng,
I tried yum install mock and I got the following which correctly tells me I am not registered with RHN (no subscription...can't afford it). Any work around you kknow of?  Thanks

[root@localhost ~]# yum install mock
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
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: mock
Nothing to do
[root@localhost ~]#

0
 
LinuxNtwrkngCommented:
I haven't used an RPM based system in years so excuse my rustiness, but is it possible that you do have teh libstdc++.so.5 file, just not in the location that your system expects it?  For example, you have it in /usr/local/lib, but the system expects it to be in /usr/lib
0
 
EnudaAuthor Commented:
LinuxNtwrkng,
Thanks again for your continued help. I am relatively new to Linux and still learning just to do the simple things (which in Linux is not always simple!!. I am learning).
I think I understand what you are saying and I have done a ---- find / -name "libstdc++.so.5"  ----- which I believe would have listed this item if it were on my system, right? I did that and nothing was returned so I can assume it is not on my system.
I don't know what else to do but keep trying to find a work-around. If you come up with any other suggestion, please go ahead and tell, I am game to try anything...I am so way behind on some test I wanted to do...
0
 
LinuxNtwrkngCommented:
You are correct. What you typed should of shown the file if it was on your system.  Let's take a step backwards here and get some basic information.

Based on the tags you entered for your post I'm assuming you're running RHEL 64 bit inside VMWare, which is running on 64 bit Windows Vista.  If I'm wrong, let me know.
Also, instead of just saying what the error is that you're having trouble with, why don't we start with what you were trying to do initially that made you see the error?

Also, I see that the package you were trying to install was a source RPM.  Is there a specific reason you wish to compile the library yourself?  Would a binary package meet your needs?  Binary packages may not be fully optimized for your system, but 1. If you're running in a virtual machine you're not concerned about eeking that last drop of performance out of the machine anyway 2. Binary packages are, on average, much easier to install.
0
 
EnudaAuthor Commented:
LinuxNtwrkng,
Ok, you said it well...My goal is to set up mutiple VMs, install DB2v9.5 and Test/learn the basics of Replication inclusing using Websphere MQ.
Now, I got VMware installed a couple of days ago and started trying to install DB2 that when I ran into the following problem:
------------------------------------------------------------------------------------------
[anyanso001@localhost db2tar]$ ./db2setup
ERROR:
   The required library file libstdc++.so.5 is not found on the system.
   Check the following web site for the up-to-date system requirements
   of IBM DB2 9.5
   http://www.ibm.com/software/data/db2/udb/sysreqs.html
   http://www.software.ibm.com/data/db2/linux/validate
 
/home/anyanso001/Desktop/vmware-tools-distrib/db2tar/db2/linuxamd64/install/../bin/db2usrinf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
/home/anyanso001/Desktop/vmware-tools-distrib/db2tar/db2/linuxamd64/install/db2setup: line 101: [: -ne: unary operator expected

/home/anyanso001/Desktop/vmware-tools-distrib/db2tar/db2/linuxamd64/install/../bin/db2langdir: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
/home/anyanso001/Desktop/vmware-tools-distrib/db2tar/db2/linuxamd64/install/../bin/db2langdir: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

DBI1055E The message file db2install.cat cannot be found.

Explanation:  The message file required by this script is missing from the system; it may have been
deleted or the database products may have been loaded incorrectly.

User Response:  Verify that the product option containing the message file is installed correctly.  If there areverification errors; reinstall the product option.
[anyanso001@localhost db2tar]$

------------------------------------------------------------------------------

Everything I have been trying to do since last week has been to get my RHEL5 machine up to par such that I can successfully install DB2. That's it!

Now, I am not familiar with the finer points of rpm vs binary packages and yes a binary package will meet my needs because I am not concerned with performance at all.  If you know of where I can get the binary for "libstdc++.so.5" or whatever form it takes, please let me know.
If there is anything else I can tell you, please let me know. I hope this helps!
0
 
LinuxNtwrkngCommented:
Try this:

http://nixos.org/tarballs/gcc-3.3.6.tar.bz2

save the file, and run (as root) 'tar -jxvf gcc-3.3.6.tar.bz2'

Pay attention to where it's extracting to.  I'm almost certain it should extract to /usr/lib.  If it goes to /usr/local/lib or somewhere else then create a symbolic link from where it goes to /usr/lib.
0
 
EnudaAuthor Commented:
LinuxNtwrkng,
Ok, I'll get to work on this and I'll post the result...
0
 
EnudaAuthor Commented:
Hi LinuxNtwrkng,
Hope you had a good Sunday.

I save and tried  'tar -jxvf gcc-3.3.6.tar.bz2' as you suggested. Yes, this package had tons of members that it unloaded into my system but libstdc++.so.5 was not one of them. I did a global search like

  BEFORE
usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/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
[root@localhost ~]#

         AFTER
[root@localhost ~]# find / -name "libstdc*"
/home/anyanso001/Desktop/libstdc
/home/anyanso001/Desktop/temp/libstdc
/home/anyanso001/Desktop/gcc-3.3.6/libstdc++-v3
/home/anyanso001/Desktop/gcc-3.3.6/libstdc++-v3/docs/html/17_intro/libstdc++-assign.txt
/home/anyanso001/Desktop/gcc-3.3.6/libstdc++-v3/po/libstdc++.pot
/home/anyanso001/Desktop/gcc-3.3.6/libstdc++-v3/testsuite/libstdc++-v3.dg
/home/anyanso001/Desktop/gcc-3.3.6/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/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
[root@localhost ~]#

As you can see, there is no libstdc++.so.5.

It seems like I am stuck with pain of a problem and being new to Linux does not help...


0
 
vancleefCommented:
.5 is an older version, so "sometimes" you can cheat and trick it into using the .6 file instead.  They are normally backwards compatible, but not always.

Try "ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.5" ... as see if it works.  You might get bit later is something incompatible with your program was done to version 6, but I've done this often without problems.


0
 
EnudaAuthor Commented:
Thanks vancleef,

I tried that trick sometime ago on this issue but it did not work. It appears that while installing DB2v9.5 64-bit, it must be looking for somethiing in that "physical file", hence the file itself must exist. I am certain there is a simple solution to this, but for the love of me, it is taking almost a week to find an answer!!
Everything I have tried so far has failed to install this file and I don't have the funds (this is a personal project) to get a Red Hat subscription!
If you have other suggestion, do pass it on my way...thanks
0
 
vancleefCommented:
If you can find an RPM archives for the libstdc++ package, you may be able to install the older version.  I suspect you will not be able to uninstall the current one, because of dependency issues, but you may be able to extract the .5 library to another directory and place it by hand into the appropriate location. ... a real pain.
0
 
EnudaAuthor Commented:
Tell me about it...indeed a real pain. What is surprising is that a lot of the packages that I have looked/install profess to have so.5 but after each install there is no so.5. That is a mystery to me. Could it be the newer version will not allow older one in but don't give any error or warning message?
I have three/four more packages to go through and if all fails, I'll get a second job to pay for RHN subscription :)

Thanks again
0
 
vancleefCommented:
Check out the section on extracting a file from an RPM at:
When you attempt to install an RPM that has .5, it may be that .6 statisfies the dependency and the .5 is not extracted. (I'm just guessing here...)


0
 
LinuxNtwrkngCommented:
Enuda,

http://FileHost.JustFreeSpace.Com/291libstdc++.so.5.txt

Remove the .txt from the filename.
0
 
EnudaAuthor Commented:
LinuxNtwrkng,

What do I do with the link above? I went there to find all manner of hosting services. There is no search feature to look for the file at issue with me. So I don't know how to use what you have sent to me...

Please explain more or how-to use it....

Thanks
0
 
vancleefCommented:
The apparent idea was to copy that file to your local library and rename it to remove the .txt suffix, but apparently the file is no longer there...
0
 
LinuxNtwrkngCommented:
What vancleef said is exactly correct.  I tried the link before posting it here and it worked for me, but you're right, enuda, it's not a valid link any longer.  What lovely timing, eh?  Sorry about that :(
0
 
LinuxNtwrkngCommented:
Enuda,

Here ya go.  I just went ahead and found a free file hosting site and uploaded a copy of the file off my system.  I'm not familiar with the filesystem layout of RH, so if someone else knows otherwise, please jump in, but the way I would do it is save the file to /usr/local/lib and then create a symbolic link to the file in /usr/lib.

Hope this helps ya!
0
 
LinuxNtwrkngCommented:
Guess it helps if I give you the link, eh?  Gosh it's been a long day  LOL

http://www.savefile.com/files/1893108

P.S. I just noticed, this host renamed the file on me.. so be sure to rename it correctly.
0
 
EnudaAuthor Commented:
LinuxNtwrkng,
Hey big guy, tell me about long days...I am having one myself.

Listen guys, I can't thank you guys enough for staying with me on this...
Now, I'll go try what I have from you guys...
0
 
EnudaAuthor Commented:
Hello all,
It appears that I was able to pull down the libstdc file to my local libraries as shown below:

[root@localhost ~]# find / -name "libstdc*"
/home/anyanso001/libstdc
/home/anyanso001/Desktop/temp/libstdc
/home/anyanso001/Desktop/temp/temp/libstdc++-devel-4.3.2-7.x86_64.rpm
/home/anyanso001/gcc-3.3.6/libstdc++-v3
/home/anyanso001/gcc-3.3.6/libstdc++-v3/docs/html/17_intro/libstdc++-assign.txt
/home/anyanso001/gcc-3.3.6/libstdc++-v3/po/libstdc++.pot
/home/anyanso001/gcc-3.3.6/libstdc++-v3/testsuite/libstdc++-v3.dg
/home/anyanso001/gcc-3.3.6/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
/usr/local/lib/libstdc_.so.5
/usr/local/lib/libstdc++.so.6
/usr/local/lib/libstdc++.so.6.0.8
/usr/local/lib/libstdc++.so.5
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.8
/usr/lib/libstdc_.so.5
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
/usr/lib/libstdc++.so.5
/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
/tmp/VMwareDnD/4fe0a5c1/libstdc_.so.5
/tmp/VMwareDnD/939c8ac8/libstdc_.so.5
/tmp/VMwareDnD/1a9f117f/libstdc++.so.5
/tmp/VMwareDnD/57e98dab/libstdc++.so.5
/tmp/VMwareDnD/cc612b60/libstdc_.so.5
/tmp/VMwareDnD/0a162024/libstdc++.so.5
/tmp/VMwareDnD/121f08ee/libstdc_.so.5
/tmp/VMwareDnD/1a9619e5/libstdc++.so.5
/tmp/VMwareDnD/189f1f77/libstdc++.so.5

I restarted my VM machine (old habit from my mainframe CICS days!) and tried to install DB2v9.5 and I still have the problem that started all my problem. See below:

root@localhost db2tar]# ./db2setup
ERROR:
   The required library file libstdc++.so.5 is not found on the system.
   Check the following web site for the up-to-date system requirements
   of IBM DB2 9.5
   http://www.ibm.com/software/data/db2/udb/sysreqs.html
   http://www.software.ibm.com/data/db2/linux/validate  
/home/anyanso001/db2tar/db2/linuxamd64/install/../bin/db2usrinf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
/home/anyanso001/db2tar/db2/linuxamd64/install/db2setup: line 101: [: -ne: unary operator expected
/home/anyanso001/db2tar/db2/linuxamd64/install/../bin/db2langdir: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
/home/anyanso001/db2tar/db2/linuxamd64/install/../bin/db2langdir: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
DBI1055E The message file db2install.cat cannot be found.

Explanation:  The message file required by this
script is missing from the system; it may have been
deleted or the database products may have been loaded
incorrectly.

User Response:  Verify that the product option containing
the message file is installed correctly.  If there are
verification errors; reinstall the product option.

Now, I am really and completely lost!! Anyone know what library DB2 is looking for this package? Because the package is there now but it continues to complain "file libstdc++.so.5 is not found on the system". Do I need to do anything further like install it or something? I am not at all savvy with this linux thing, so I don't know exactly what to do now.

0
 
EnudaAuthor Commented:
For the amount of time put in on this issue, it should be worth a 1000 points if you ask me!!
0
 
vancleefCommented:
I found a note on a non-english formum, discussing the same problem on a Ubuntu system.

/home/antonio/Desktop/exp/db2/linux/install/../bin/db2langdir:
 error while loading shared libraries: libstdc++.so.5:
 cannot open shared object file: No such file or directory
Their solution was;

sudo apt-get install libstdc++5
 sudo apt-get install libaio-dev
 sudo ./db2setup
The libaio package may be what you are missing.
0
 
EnudaAuthor Commented:
vancleef,
You know, I am not surprised that there is more to this "little bugger" than meets the eye!!  
Thanks for taking the time to find this. Now, I'll go try it and report back soon...
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 13
  • 9
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now