Thursday, January 12, 2012

Compiling rgdal in 64 bits Mac

from http://blog.fellstat.com/?p=46

Currently Rstudio is available for the Mac platform only in 64 bits. We like Rstudio and continue using it. In order to use rgdal package in 64 bits, we had to compile the rgdal package.

Forst the Mac .dmg file of PROJ.4 was downloaded from the link given above. Then the source code of the latest rgdal (as of today) was downloaded from the rgdal website.

We then compiled rgdal from within a shell script using the following command :

sudo R --arch x86_64 CMD INSTALL --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/Headers --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib' rgdal_0.7-5.tar.gz


No comments:

Post a Comment