You do not need to compile R from source on RHEL 6. If you enable the
EPEL repository then you can install the binary RPM via yum. See
https://fedoraproject.org/wiki/EPEL
Tom Callaway, who maintains the Red Hat binaries of R, statically links
up-to-date versions of bzip2, xz, pcre, and curl into
System: Red Hat Enterprise Linux Server release 6.5 (Santiago)
I’ve installed zlib 1.2.11 on the home folder of a Red Hat HPC as part of the
process for installing R base 3.4.0.
I get this error even after successful install of zlib
checking for inflateInit2_ in -lz... no
checking whether zlib s