This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using Multiple versions of glibc using LD_LIBRARY_PATH env variable.


Hi, all

I just built different version of glibc from Fedora core 9 and I tried to execute some applications (e.g. Firefox, Mysql) using this library.
First I tried it by changing LD_LIBRARY_PATH environmental variable like below, but it crashed with core dump.


 $ export LD_LIBRARY_PATH=/tmp/lib-2.9/lib:$LD_LIBRARY_PATH
 $ echo $LD_LIBRARY_PATH
 /tmp/lib-2.9/lib
 $ /bin/ls
 Segmentation fault (core dumped)

What I did next was using 'ld-linux.so.2' loader and it could exeute the command.

$/tmp/lib-2.9/lib/ld-linux.so.2 --library-path /tmp/lib-2.9/lib /bin/ ls

But I still want to find cleaner solution to have multiple versions of glic in a single machine.
Can anyone help me with this?


Thanks for your help in advance
/Kangkook


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]