[R-SIG-Mac] Update to versions GEOS 3.8.0, GDAL 3.0.4 and PROJ 7.0.0 in macOS Catalina

Alberto Lázaro-López @|@z@ro|op @end|ng |rom po@teo@me
Wed Jun 10 12:53:41 CEST 2020


Good day Manuel,

I understand there are several conditions impacting in your issue. 

1. Since you are building packages from source, you need to get some toolsets working together correctly: macOS Developer Tools, gcc, Fortran and LLVM. 

2. You are also using an R version installed from .pkg installer, and I’m not sure whether it’s also behind the problem.  

I can tell I have the .dylib file you mentioned in that directory and it’s not a symlink, so I’m not sure about its origin. On the other hand, I’ve never faced a similar issue. I use a compiled version of R from a Homebrew tap [1] with the toolsets listed above set up (including some PATH adjustment and a Makevars file). 

I’ll write a tutorial on how I got it working and share it to the list, so anyone can try to reproduce it. I would suggest you to follow it in an independent SO installation, so you don’t risk your production environment. 

[1]: https://github.com/sethrfore/homebrew-r-srf

Best regards,

Alberto D. Lázaro López
about.me/alazarolop

> On 8 Jun 2020, at 16:06, Manuel Spínola <mspinola10 using gmail.com> wrote:
> 
> Thank you very much Alberto,
> 
> I tried:
> 
> brew tap osgeo/osgeo4mac
> brew unlink gdal
> brew unlink proj
> 
> brew install osgeo-gdal
> brew install osgeo-proj
> brew link osgeo-gdal
> brew link osgeo-proj
> 
> install.packages("rgdal", type = "source")
> 
> Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...):
>  unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-rgdal/00new/rgdal/libs/rgdal.so':
>   dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-rgdal/00new/rgdal/libs/rgdal.so, 6): Symbol not found: ___addtf3
>   Referenced from: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib
>   Expected in: /usr/lib/libSystem.B.dylib
>  in /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib
> Error: loading failed
> Execution halted
> 
> After trying to find a solution, some people suggested me to wait for the binary packages.
> 
> Manuel
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> El dom., 7 jun. 2020 a las 4:47, Alberto Lázaro-López (<alazarolop using posteo.me>) escribió:
> Hi all, 
> 
> I got in touch with Manuel Spínola in R-sig-geo mailing list, I didn’t keep an eye on this list though. 
> I’ve seen some mails regarding issues with PROJ and GDAL in macOS following Homebrew versions.
> 
> We are maintaining a Homebrew tap focused on OSGeo projects called OSGeo4Mac.
> At this moment, it’s serving bottles for GDAL 3.1.0 and PROJ 6.3.2, but also other GIS software as PostGIS or SAGA.
> They are intended to be more flexible and provide more functionality than those available as core versions too.
> 
> We are also looking for collaborators to discuss and support formulas they are interested in. 
> You are really welcome.
> 
> Best regards,
> 
> Alberto D. Lázaro López
> about.me/alazarolop <https://bit.ly/ALazaroLop>
> 
>         [[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> -- 
> Manuel Spínola, Ph.D. 
> Instituto Internacional en Conservación y Manejo de Vida Silvestre 
> Universidad Nacional 
> Apartado 1350-3000 
> Heredia 
> COSTA RICA 
> mspinola using una.cr 
> mspinola10 using gmail.com 
> Teléfono: (506) 8706 - 4662
> Personal website: Lobito de río 
> Institutional website: ICOMVIS



More information about the R-SIG-Mac mailing list