Linux Copying Glibc from one linux machine to another

Status
Not open for further replies.

deaddevil

Contributor
I need to copy glibc from one machine to another machine, and need to know what files do I need to transfer from machine A to b and where are they located.
I need help regarding this.
My linux distribution: Red Hat Enterprise Linux WS release 4 (Nahant).
 
bad idea messing with a core library... why not use the existing/default glibc installation? if you are having compatibility problems, you probably need to search online for solutions based on what/why you are really trying to do (which you have not mentioned)... maybe you have compiled some software on one machine which doesnt run on the other? then maybe recompile on the new one as well...
 
the issue here is i get the following error :
*** glibc detected*** malloc() memory corruption,

when I run a software, so i was trying to copy glibc from a machine where my software works.
Is it possible, and where are the libraries stored for glibc?
 
did you search for that error message to check if your code is the problem and not glibc??? but first just recompile on the system giving the error - its probably just a compatibility problem.... code compiled to link with one version causes problems with another... so just recompile...
 
A very bad idea indeed. It seems the software files are broken, report a bug at s.w bug repot and ask for help.

Copying a glibc from other system can make system crash or result in no application load :P
 
Thanks for your suggestions guys!!
Also now since I cannot copy these files, i'm going to update glibc.
Now I have never installed glibc, coz using a system with linux already installed.

Now in a particular folder I have the following files:
glibc-2.3.4-2.19.i686.hdr
glibc-2.3.4-2.19.i686.rpm
glibc-2.3.4-2.19.x86_64.hdr
glibc-2.3.4-2.19.x86_64.rpm
glibc-2.3.4-2.9.i686.hdr
glibc-common-2.3.4-2.19.x86_64.hdr
glibc-common-2.3.4-2.19.x86_64.rpm
glibc-devel-2.3.4-2.19.i386.hdr
glibc-devel-2.3.4-2.19.i386.rpm
glibc-devel-2.3.4-2.19.x86_64.hdr
glibc-devel-2.3.4-2.19.x86_64.rpm
glibc-headers-2.3.4-2.19.x86_64.hdr
glibc-headers-2.3.4-2.19.x86_64.rpm

Above were the files I have.
Now on one system where the software works fine has the following glibc when i run command: rpm -qa | grep glibc

I want my second system to be identical to the one below:
glibc-headers-2.3.4-2
compat-glibc-headers-2.3.2-95.30
glibc-2.3.4-2
glibc-devel-2.3.4-2
glibc-2.3.4-2
glibc-devel-2.3.4-2
glibc-common-2.3.4-2
glibc-kernheaders-2.4-9.1.87
compat-glibc-2.3.2-95.30

And my non working glibc has the following
glibc-headers-2.3.4-2
compat-glibc-headers-2.3.2-95.30
glibc-2.3.4-2.19
glibc-devel-2.3.4-2
glibc-2.3.4-2.19
glibc-devel-2.3.4-2
glibc-common-2.3.4-2.19
glibc-kernheaders-2.4-9.1.87
compat-glibc-2.3.2-95.30

plz suggest differnece between i686.rpm and x86_64.rpm ?
also version 2.3.4-2 or 2.3.4-2.19 is latest?
also is downgrade of glibc possible if upgrade fails?
also command for running upgrade of rpm?

thanks
 
i hope this isnt a 32 bit vs 64 bit issue... if you think so, search for "multilib" for redhat solutions to running 32 and 64 bit code side by side...
 
i686 is 32 bit package for a 32 bit OS

x86_64 is 64 bit package for 64 bit OS.

Copy wont work and will screw your system.
 
Status
Not open for further replies.