Trouble installing rgdal

后端 未结 4 1557
无人共我
无人共我 2020-12-08 03:18

I want to install rgdal for \"R version 3.2.3 (2015-12-10)\". I downloaded and installed

  • GDAL 1.11 Complete
  • PROJ framework
4条回答
  •  没有蜡笔的小新
    2020-12-08 03:38

    Quick note building on previous answer by @Stophface that might be useful to someone:

    I did all steps listed above, but the rgdal installation in Terminal still gave me the error of configure: error: proj_api.h not found in standard or given locations. Yet (and without knowing exactly why), I managed to install it from R.app using pretty much the same specifications:

    > install.packages('rgdal', type = "source", configure.args=c(
         '--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'))
    

    And thanks again for your answer!

提交回复
热议问题