[CentOS] Building a newer glibc RPM for CentOS 6 and installing into an alternate path

Les Mikesell lesmikesell at gmail.com
Tue Mar 31 19:06:11 UTC 2015


On Tue, Mar 31, 2015 at 1:21 PM,  <m.roth at 5-cent.us> wrote:
>>>>
>>> Perhaps, but I’m running CentOS 6.6 i686 (i.e., 32-bit), and it appears
>>> that Docker requires 64-bit.  Oh well, I was getting my hopes up for a
> while.
> <snip>
> I haven't really been following this thread closely, but would it be a
> dumb question to suggest installing the rpm with the relocate flag, and
> then use LD_LIBRARY_PATH?
>

It was mentioned earlier that LD_LIBRARY_PATH doesn't work with libc,
but LD_PRELOAD should..  I tried unpacking a centos7 glibc rpm under
/tmp/c7libs on a centos 6 box and trying to run a centos7 version of
cat with:

LD_LIBRARY_PATH=/tmp/c7libs/lib64:$LD_LIBRARY_PATH
LD_PRELOAD="/tmp/c7libs/lib64/ld-linux-x86-64.so.2
/tmp/c7libs/lib64/libc.so.6"   /tmp/cat-7 /tmp/test

seems to work, but that's not a real demanding test...

-- 
   Les Mikesell
     lesmikesell at gmail.com



More information about the CentOS mailing list