Results 1 to 2 of 2
I am running RHEL5 in a linux box. It has zlib 1.2.3 pre-installed. Recently, I need to install some programs that require a later version (1.2.5) of zlib. I installed ...
- 07-13-2010 #1Just Joined!
- Join Date
- Jan 2003
- Posts
- 5
Looking for a solution to have 2 versions of zlib in RHEL5
I am running RHEL5 in a linux box. It has zlib 1.2.3 pre-installed. Recently, I need to install some programs that require a later version (1.2.5) of zlib. I installed the newer version at /usr/local/lib. But if I include /usr/local/lib in the ld.so.conf, some system programs won't work because they were built on zlib 1.2.3. I tried to include /usr/local/lib when compiling the other programs and it will work most of the times. But for the rest, I need to manually link libz.so to libz.so1.2.5 to make a successful compilation and then manually link back to libz.1.2.3. Is there a better way to make it work without the manual interventions? Thanks.
- 07-14-2010 #2Just Joined!
- Join Date
- May 2008
- Location
- Bangalore, India
- Posts
- 24
you can make use of env variable, for compiling your programs
LD_LIBRARY_PATH=/usr/local/lib my_program


Reply With Quote