Did you install these "Optional Libraries, Frameworks and Applications
for macOS (arm64)" — https://mac.r-project.org/libs-arm64/ — and
/opt/R/arm64/bin to PATH?

On Fri, Jul 23, 2021 at 8:54 AM Stephen Wild
<stephen.james.w...@gmail.com> wrote:
>
> Hello,
>
> I am trying to install rgdal, sf, and rgeos on R 4.1 using Apple Silicon
> with native arm support. An old email
> <https://r.789695.n4.nabble.com/Help-needed-gdal-configuration-to-install-sf-package-in-Mac-OS-Catalina-td4762279.html>
> to the R help email list suggested emailing here given the error messages I
> am receiving.
>
> When I try to install `rgeos` or `sf` I get the following error:
>
> > configure: error: geos-config not found or not executable.
>
>
> Full error messages are at the end of the email.
>
> I have followed the instructions here
> <https://github.com/r-spatial/sf/issues/1536#issuecomment-727342736> to
> install gdal using homebrew. Installation is successful, and running
> `gdalinfo --version` show I am running
>
> > GDAL 3.3.1, released 2021/06/28
>
>
> I have tried uninstalling gdal, reinstalling it, building from source, and
> changing the PATH (`export PATH=$PATH:/usr/local/opt/gdal-33/bin`). So far,
> no luck. Any help would be appreciated.
>
>
> Thanks.
>
> Steve
>
> Full error messages:
> rgeos
>
> > * installing *source* package ‘rgeos’ ...
> > ** using staged installation
> > configure: CC: clang -arch arm64
> > configure: CXX: clang++ -arch arm64 -std=gnu++14
> > configure: rgeos: 0.5-7
> > checking for /usr/bin/svnversion... no
> > cat: inst/SVN_VERSION: No such file or directory
> > configure: svn revision:
> > checking for geos-config... no
> > no
> > configure: error: geos-config not found or not executable.
> > ERROR: configuration failed for package ‘rgeos’
> > * removing
> > ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgeos’
> > Warning in install.packages :
> >   installation of package ‘rgeos’ had non-zero exit status
>
>
> The downloaded source packages are in
> >
> > ‘/private/var/folders/r1/t2s9jjkj4k56jy6_29_s3svm0000gn/T/Rtmp6w846p/downloaded_packages’
>
>
>
>
> sf
>
> > * installing *source* package ‘sf’ ...
> > ** using staged installation
> > configure: CC: clang -arch arm64
> > configure: CXX: clang++ -arch arm64 -std=gnu++11
> > checking for gdal-config... no
> > no
> > configure: error: gdal-config not found or not executable.
> > ERROR: configuration failed for package ‘sf’
> > * removing
> > ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/sf’
> > Warning message:
> > In i.p(...) :
> >   installation of package
> > ‘/var/folders/r1/t2s9jjkj4k56jy6_29_s3svm0000gn/T//Rtmp6w846p/file23001676a067/sf_1.0-2.tar.gz’
> > had non-zero exit status
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> 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

Reply via email to