Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiple glibc libraries on a single host
    primarykey
    data
    text
    <p>Multiple glibc libraries on a single host</p> <p>My linux (SLES-8) server currently has glibc-2.2.5-235, but I have a program which won't work on this version and requires glibc-2.3.3.</p> <p>Is it possible to have multiple glibcs installed on the same host?</p> <p>This is the error I get when I run my program on the old glibc:</p> <pre><code>./myapp: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./myapp) ./myapp: /lib/i686/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./myapp) ./myapp: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./libxerces-c.so.27) ./myapp: /lib/ld-linux.so.2: version `GLIBC_2.3' not found (required by ./libstdc++.so.6) ./myapp: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by ./libstdc++.so.6) </code></pre> <p>So I created a new directory called newglibc and copied the following files in:</p> <pre><code>libpthread.so.0 libm.so.6 libc.so.6 ld-2.3.3.so ld-linux.so.2 -&gt; ld-2.3.3.so </code></pre> <p>and</p> <pre><code>export LD_LIBRARY_PATH=newglibc:$LD_LIBRARY_PATH </code></pre> <p>But I get an error:</p> <pre><code>./myapp: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by ./newglibc/libpthread.so.0) ./myapp: /lib/ld-linux.so.2: version `GLIBC_2.3' not found (required by libstdc++.so.6) ./myapp: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by ./newglibc/libm.so.6) ./myapp: /lib/ld-linux.so.2: version `GLIBC_2.3' not found (required by ./newglibc/libc.so.6) ./myapp: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by ./newglibc/libc.so.6) </code></pre> <p>So it appears that they are still linking to /lib and not picking up from where I put them?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload