Bijesh Mishra
2020-Apr-06 04:27 UTC
[R] Help needed: gdal-configuration to install sf package in Mac OS Catalina
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? 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 -- Kind Regards, Bijesh Mishra. *********************************************************************************************** [[alternative HTML version deleted]]
Ivan Krylov
2020-Apr-06 07:11 UTC
[R] Help needed: gdal-configuration to install sf package in Mac OS Catalina
On Sun, 5 Apr 2020 23:27:08 -0500 Bijesh Mishra <bjs.misra at gmail.com> wrote:> configure: error: gdal-config not found or not executable.This would mean that gdal [1], which is a dependency of the sf package, is not installed (or not available on $PATH, or...). If you use Homebrew [2], try running 'brew install gdal'. If you are still having problems, consider asking on R-SIG-Mac list [3]. -- Best regards, Ivan [1] https://gdal.org/ [2] https://brew.sh/ [3] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
David Winsemius
2020-Apr-07 16:19 UTC
[R] Help needed: gdal-configuration to install sf package in Mac OS Catalina
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 >