且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Mac OS X Lion上安装rgeos和rgdal时出现问题

更新时间:2023-09-16 12:48:25

我已经设法通过首先以与您相同的方式安装GDAL框架,使两者在MacOSX Lion中都能正常工作.

I've managed to get both working in MacOSX Lion by first installing the GDAL frameworks the same as you.

我已经在终端中从源代码安装了rgdal

I've installed rgdal from source in the terminal with

sudo R64 CMD install rgdal_0.7-1.tar.gz --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config --with-proj-include=/Library/Frameworks/PROJ.framework/unix/include --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'

与rgeos类似:

sudo R64 CMD INSTALL rgeos_0.1-8.tar.gz --configure-args='--with-geos-config=/Library/Frameworks/GEOS.framework/unix/bin/geos-config'

请注意,我所有的R软件包都安装在系统级别,因此说明中给出的--configure-args='照常工作.

As a note, all of my R packages are installed at the system level, so the --configure-args=' as given in the instructions work as is.