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@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@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac