A short description of the post.
Every time I upgrade in any significant way, two R libraries seem to raise their ugly heads and scream like a spoiled child—rgdal and rgeos . Why do these two have to be SOOOO much of a pain? Why can’t we have a auto build of a binary with all the options in it for OSX? Who knows? I always feel like I get the fuzzy end of the lollipop with these two. Here is my latest approach for getting them going.
First you have to make sure you have the latest GDAL libraries. I used to get mine from
Kyngchaos, just download the framework, install it, and then do some kind of long R CMD INSTALL dance, which seems to no longer work for me. I also tried installing from Ripley’s repository and found that (a) It was a version older than the one I already had on my machine, and (b) you can’t install from that repository , there is a malformed header and the install.packages() function just barfs.
Time to try something new. I typically stay away from the various installer frameworks out there on OSX to keep everything in Frameworks. But this time, I used MacPorts. You can find the latest version here. Here is how I got it to help me out.
For attribution, please cite this work as
Dyer (2015, Aug. 27). The Dyer Laboratory: Compiling RGDAL on OSX 8211 Why do you hate me. Retrieved from https://dyerlab.github.io/DLabWebsite/posts/2015-08-27-compiling-rgdal-on-osx-8211-why-do-you-hate-me/
BibTeX citation
@misc{dyer2015compiling, author = {Dyer, Rodney}, title = {The Dyer Laboratory: Compiling RGDAL on OSX 8211 Why do you hate me}, url = {https://dyerlab.github.io/DLabWebsite/posts/2015-08-27-compiling-rgdal-on-osx-8211-why-do-you-hate-me/}, year = {2015} }