Skip to content
Prev 10461 / 15075 Next

R 3.0.2/3.0.3 source install problems on OS X 10.9.2

Thank you for your reply, Peter.
On Sun, Mar 9, 2014 at 3:31 AM, peter dalgaard <pdalgd at gmail.com> wrote:
Actually, no.  This is *not* a homebrew specific problem, and so I did
not say that up front, though perhaps I could have been more clear on
this point rather than relegating it to a mention in passing to
"CRAN-provided source."  My apologies.

To clarify:  I have this problem both with CRAN-provided source that I
try to compile directly by hand (with "configure" and "make") and with
the homebrew-driven automatic compilation procedure.  In either case,
the error seems to be the same and to occur in the same place:  R
compiles but once it comes time to install the recommended libraries,
the R binary has some problem reading (or untarring/decompressing?)
the .tgz of various libraries, such as MASS, and this leads the "make"
script to abort.  I provide the links to the homebrew output because
what is seen there in the "configure" and "make" output is essentially
the same as what I see when I try to compile from CRAN-provided source
by hand (and I don't want to cut-and-paste everything here since it is
already available there via the links to the gists below).

Right now I am trying to get the CRAN-provided source to complete its
"make" script before I try and go back to homebrew.  So right now this
really is about R 3.0.2 (or 3.0.3) on OS X 10.9.2.  (Though perhaps
some of the other non-R tools provided by homebrew may be relevant
here.)
Thank you for these suggestions.  Makeconf contains this line:

TAR = /usr/local/bin/gtar

This is the homebrew-installed gnutar.  However, is the R binary
(which has properly compiled and is the source of the error in library
installation) reading Makeconf to determine how to untar the library
.tgz?

I tried using the debug command you suggested.  I'm not sure if I am
doing this right (as I am completely new to R, so new I cannot even
get the install to fully complete!), but here is what I did and what I
saw:

$ ../../../bin/R

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.1.0 (64-bit)
[[...warranty and initial instructions deleted...]]
Warning in read.dcf(fd <- file.path(pkg, "DESCRIPTION")) :
  cannot open compressed file
'./Rtmp8WNcfs/R.INSTALLbf2333341aff/MASS/DESCRIPTION', probable reason
'No such file or directory'
Error: error reading file './Rtmp8WNcfs/R.INSTALLbf2333341aff/MASS/DESCRIPTION'
Warning message:
In install.packages("MASS.tgz", repos = NULL) :
  installation of package 'MASS.tgz' had non-zero exit status

This seems to just be a repeat of the error message provided if I use
the command-line version "R INSTALL CMD MASS.tgz".  Doesn't it seem
like something strange is going on with the untar/decompress internals
here?

Other ideas as to how I might proceed?

I hope all is well.