[R-SIG-Mac] How to NOT remove build directory after building a package?
Simon Urbanek
@|mon@urb@nek @end|ng |rom R-project@org
Sat Sep 21 05:56:31 CEST 2019
Using fink is asking for a lot of trouble, but, anyway, use
R CMD INSTALL --no-clean-on-error
The other alternative is run INSTALL on the directory instead of the tar ball.
Cheers,
S
> On Sep 20, 2019, at 8:03 PM, Yoshihiko Baba via R-SIG-Mac <r-sig-mac using r-project.org> wrote:
>
> Hi,
>
>
> I have been trying to build a CRAN package from the source on Mac+Fink. However, I got an error during the build process. How can I tell R not to remove the temporary build directory?
>
>
> checking for gsl-config... /sw/opt/gsl25/bin/gsl-config
> checking if GSL version >= 2.1... checking for gcc... gcc
> checking whether the C compiler works... no
> configure: error: in /private/tmp/RtmpqJYplW/Rbuildc37f217e13c4/gsl': configure: error: C compiler cannot create executables See config.log' for more details
> ERROR: configuration failed for package 'gsl'
> removing '/private/tmp/RtmpqJYplW/Rinstc37f5c43ba09/gsl'
> -----------------------------------
> ERROR: package installation failed
>
>
> I am using Fink because Fink can install multiple versions of libraries (gsl in this case). However, to have multiple versions, GSL libraries are installed in non-standard direcotry (/sw/opt/gsl25). By setting:
> $ export GSL_CONFIG=/sw/opt/gsl25/bin/gsl-config
> I have managed to tell the location of GSL, but gcc failed somehow. But the config.log was deleted by R.
>
>
> Thanks
> —
> BABA Yoshihiko
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list