[R] Help needed: gdal-configuration to install sf package in Mac OS Catalina

David Winsemius dw|n@em|u@ @end|ng |rom comc@@t@net
Tue Apr 7 18:19:25 CEST 2020


On 4/5/20 9:27 PM, Bijesh Mishra wrote:
> Hi,
> I am using R in Mac. I was trying to install sf package but could not and
> got error. Detail message of error is under this email. It seems like I
> have to run gdal- configuration, but not sure what that means. Do you have
> any idea about that?


GDAL is an external system resource for spatial modeling. The advice to 
install using homebrew might not succeed if you are not skilled in 
managing Mac Unix facilities, as it appears you are not. My 
recommendation would be to first try installing GDAL from the Kingchaos 
Frameworks website: https://www.kyngchaos.com/software/frameworks/

As mentioned you have posted to the wrong mailing list and this should 
have been posted to the R-SIG-Mac list. Instructions fro subscribing can 
be found here: https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 

David.

>
> This is the message I got while installing SF package:
>
> configure: error: gdal-config not found or not executable.
> ERROR: configuration failed for package ‘sf’
> * removing
> ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/sf’
> Error: Failed to install 'sf' from GitHub:
>    (converted from warning) installation of package
> ‘/var/folders/5_/74nhx31d521cjc_gjz58nh8r0000gn/T//RtmpO7v2bW/filea6321afd2c24/sf_0.9-1.tar.gz’
> had non-zero exit status
>



More information about the R-help mailing list