Page 1 of 1

update to zlib-1.2.11

Posted: 2018/03/18 17:10:25
by jeksterslab
I am trying to update to zlib-1.2.11. I downloaded and configured zlib as root using the code below. However, if I get the info of the version installed via

Code: Select all

yum info zlib 
I am getting version 1.2.3. What am I doing wrong? Any help would be greatly appreciated.

Input:

Code: Select all

wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11
cd zlib-1.2.11
./configure
Output:

Code: Select all

Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.11 with gcc.
Checking for size_t... Yes.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.

Re: update to zlib-1.2.11

Posted: 2018/03/18 18:00:20
by avij
You really should not attempt to overwrite important system libraries that way. Why do you think you need 1.2.11?

Re: update to zlib-1.2.11

Posted: 2018/03/18 18:05:34
by jeksterslab
I am building R statistics from source and it needs a version of zlib greater than 1.2.5.

Re: update to zlib-1.2.11

Posted: 2018/03/18 18:17:01
by avij
Save yourself some trouble and yum install epel-release --enablerepo=extras and then yum install R

Re: update to zlib-1.2.11

Posted: 2018/03/18 18:40:27
by jeksterslab
I know that yum install epel-release --enablerepo=extras and then yum install R would be the easiest way to go and I have used this in the past. I really want to learn how to successfully build R from source on a CentOS6 machine and addressing the zlib issue is important for me. Is it possible to update zlib for just a particular user or user group and not system-wide? Will doing this create issues for the system?

Re: update to zlib-1.2.11

Posted: 2018/03/18 18:47:03
by avij
If you build zlib in /home/jeksterslab/src/zlib, you can (probably) build R in /home/jeksterslab/src/R by telling its configure script to use zlib in ../zlib

I would strongly advice to keep your zlib builds within your own home directory and not install the resulting binaries elsewhere. Also, don't build anything as root (whether this was the case here was unknown, but I wanted to point this out anyway).

Be warned that R is not a particularly small package, and you are likely to run into all kinds of odd dependency problems along the route.