Dear all, 

Mac users that have upgraded to Mac OS 11 BigSur have reported having problems 
with “rgdal” and “sf”. The same happened to me when I upgraded my Mac.

I managed to get "sf" to run on MacOS 11.0.1 by recompiling most of the 
required packages. Here's the recipe:

1. Remove all spatial software from brew (if you installed it). Rgdal does not 
like "brewed" stuff (I believe Roger prefers wine). Seriously, it appears that 
rgdal looks for libraries in their default places and not in the "Cellar" 
libraries used by "brew".

2. Install Xcode 12.3beta (downloaded from Apple Developers). This is the 
latest version of XCode which is compatible with MacOS BigSur.

3. Install "wget" using brew:

"brew install wget".

4. Download the libraries below from their sources:

(a) sqlite-autoconf-3330000.tar.gz from " 
(b) tiff-4.1.0.tar.gz from " 
(c) proj-7.2.0.tar.gz from " 
(d) libgeotiff-1.6.0.tar.gz from 
(e) geos-3.8.1.tar.bz2 from " 
(f) gdal-3.2.0.tar.gz from " 

5. In the order given above, unpack each library and then execute the following 
% ./configure
% make
% sudo make install

6. Now you are ready to compile "rgdal" and "sf" from source. Using the R 

> install.packages("rgdal", type = "source”)
> install.packages("sf", type = "source")
7. After those steps, both "rgdal" and "sf" are working on MacOS BigSur.

Hope this helps Mac users.

        [[alternative HTML version deleted]]

R-SIG-Mac mailing list

Reply via email to