update to zlib-1.2.11

Issues related to applications and software problems
Post Reply
jeksterslab
Posts: 3
Joined: 2018/03/18 16:57:29

update to zlib-1.2.11

Post by jeksterslab » 2018/03/18 17:10:25

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.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: update to zlib-1.2.11

Post by avij » 2018/03/18 18:00:20

You really should not attempt to overwrite important system libraries that way. Why do you think you need 1.2.11?

jeksterslab
Posts: 3
Joined: 2018/03/18 16:57:29

Re: update to zlib-1.2.11

Post by jeksterslab » 2018/03/18 18:05:34

I am building R statistics from source and it needs a version of zlib greater than 1.2.5.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: update to zlib-1.2.11

Post by avij » 2018/03/18 18:17:01

Save yourself some trouble and yum install epel-release --enablerepo=extras and then yum install R

jeksterslab
Posts: 3
Joined: 2018/03/18 16:57:29

Re: update to zlib-1.2.11

Post by jeksterslab » 2018/03/18 18:40:27

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?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: update to zlib-1.2.11

Post by avij » 2018/03/18 18:47:03

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.

Post Reply