Skip to content

sf installation problem under Mac OS 11 - Big Sur

4 messages · Simon Urbanek, Brian Ripley, Michal Ben-Nun

#
Hi,

I installed R 4.10 on my Mac OS 11.3.1

I am trying to install 'sf' and 'rgdal'
#
Michal,

those instructions work for released CRAN R. Apparently, that's not what you are using - if you want to compile sf and gdal from sources, that is more challenging and you have to install all its dependencies first. In the output below you're missing at the very least the PROJ4/6 library - it may not be the only thing you're missing, so make sure you read the errors and install all necessary dependencies.

Cheers,
Simon
#
On 18/08/2021 23:52, Michal Ben-Nun wrote:
Presumably R 4.1.0.
Asking on R-sig-geo would be appropriate as macports/Homebrew are 
generic Unix-alike systems.

Hint: rgdal has

SystemRequirements: PROJ (>= 4.8.0, https://proj.org/download.html) and 
GDAL (>= 1.11.4, https://gdal.org/download.html), with versions either 
(A) PROJ < 6 and GDAL < 3 or (B) PROJ >= 6 and GDAL >= 3.

and it seems you have not installed PROJ

  
    
#
I was able to install the packages after setting the environment
variable PKG_CONFIG_PATH to the location of proj.pc


On Wed, Aug 18, 2021 at 11:20 PM Simon Urbanek <simon.urbanek at r-project.org>
wrote: