[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: installing glibc 2.1
On Sat, 31 Jul 1999, Oded Arbel wrote:
> Is there a way (an easy one) to install glibc 2.1 on a glibc 2.0.7 system
> (RH5.1) without removing glibc 2.0.7 ?
> so I can run all my old programs, and also new programs that require glibc
> 2.1 ??
adding to chmuel's answer, here is a crude way of "how to run a program on
my machine, for evaluation purposes, that requires newer library versions
then what i currently got?".
the solution i use for such cases is this:
1. Create some library in the system, and put the newer library versions
in it (for example, under /usr/local/glibc2).
2. install the new application, but move its main binary file to a new
name (if it was /usr/local/bin/appli , rename it to
/usr/local/bin/appli.real).
3. create the following shell script and place it as /usr/local/bin/appli:
#!/bin/sh
LD_LIBRARY_PATH=/usr/local/newlibs:${LD_LIBRARY_PATH}
exec /usr/local/bin/appli $*
4. make this shell script executable, and check it out.
the LD_LIBRARY_PATH variable tells the dynamic linker where to look
fordynamic libraries to load. it contains a set of directories seperated
by colon (':') characters, and these directories are searched in order.
advantages of this solution:
- you can NOT hurt the rest of your system if you work this way - the
other applications will continue using libraries from the normal system
directories - i.e. older library versions.
disadvantages of this solution:
- memory waisting - now there are at least two copies of the overlapping
shared libraries in memory - both the old version and the new version.
thus, this "solution" should not be used for permanent installation -
always prefer the upgrade route.
- too messy. you might end up with too many 'newlib' directories.
one important note: there are cases when you must install some programs in
specific directories, and this solution wo't be sufficient. For example,
if you have a libc5 based system, and you want to use programs that
require glibc2, you MUST install some program (i think it is ld.so.2) in
the '/etc' directory - you may still install the dynamic libraries
themselves in some new directory, though.
hope this helps someone, sometime, somewhere, for some thing...
guy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il