Skip to content

configure statement for R-devel with updated zlib in user account

3 messages · Jesper Gådin, Paul Johnson

#
I'm aware R-devel no longer includes zlib. This works find on
up-to-date Linux systems.

On the older Centos 6 cluster at KU, they have zlib tool old for
R-devel. The R-devel configure fails thus:

checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib
library and headers are required

In other software, I've seen this kind of thing, so I installed zlib
1.2.8 into $HOME/packages and I can verify that the right pieces are
installed there.

Now I need you to tell me how to tell R to use that. Guesses so far:

$ export PATH=$HOME/packages/bin:$PATH
$ export LD_LIBRARY_PATH=$HOME/packages/lib:$LD_LIBRARY_PATH

What R's configure statement needs to find zlib in my user account?

In R-devel, the ./configure --help doesn't give me a simple-enough
explanation of what I'm supposed to do. I thought I had a solution by
adding this

--with-libpth-prefix=$HOME/packages

but still rejection, new zlib not found.
2 days later
#
Hi Paul,

This might be what you are looking for.
https://stat.ethz.ch/pipermail/r-devel/2015-April/070951.html

Jesper
On Fri, Feb 12, 2016 at 6:13 PM, Paul Johnson <pauljohn32 at gmail.com> wrote:

            

  
  
3 days later
#
On Mon, Feb 15, 2016 at 3:28 AM, Jesper G?din <jesper.gadin at gmail.com> wrote:
Thanks to help form Wes Mason at KU and Jesper Gadin in r-devel, I
compiled R-devel on RHEL 6.

R-devel requires install of newer gzip, bzip2, xz, pcre, and curl.
Compiles of bzip2 and pcre require a slightly greater-than-usual
amount of attention to detail.  I wrote it all out:

http://pj.freefaculty.org/blog/?p=315 "Building R-devel on RedHat Linux 6"

Regards

pj