[R-SIG-Mac] Updating some packages fails

Manuel Spínola mspinola10 at gmail.com
Thu Jan 11 18:26:41 CET 2018

Dear list members,

When trying updating some packages in MacOS High Sierra 10.13 (R 3.4.2)
some packages, as "sf", fails:

> install.packages("sf")

  There is a binary version available but the source version is later:
   binary source needs_compilation
sf  0.5-5  0.6-0              TRUE

Do you want to install from sources the package which needs compilation?
y/n: y

installing the source package ‘sf’

trying URL 'https://cran.rstudio.com/src/contrib/sf_0.6-0.tar.gz'
Content type 'application/x-gzip' length 7399611 bytes (7.1 MB)
downloaded 7.1 MB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'default/America/Costa_Rica'
* installing *source* package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
configure: CC: clang
configure: CXX: clang++
checking for gdal-config... no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’
* removing
* restoring previous
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status

The downloaded source packages are in

Any solution to this problem?


*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

More information about the R-SIG-Mac mailing list