【发布时间】:2013-12-06 01:39:48
【问题描述】:
我最近从windows切换到ubuntu,无法使rgdal包正常工作。
我知道有很多关于这方面的帖子,但我就是无法让它发挥作用。
我在https://gist.github.com/lossyrob/4348503 之后安装了gdal
但是根据rgdal%in%installed.packages(),rgdal 仍然在我的已安装软件包列表中,但是当我包含library(rgdal) 时,它返回Error in library(rgdal) : there is no package called ‘rgdal’。
感谢任何帮助。
【问题讨论】:
-
我已经看到了,我运行了 $ sudo apt-get install libgdal1-dev libproj-dev installed 并更新了 apt-file 我没有收到任何错误,但我不允许包含该库.我错过了什么吗?
-
我刚刚安装在我的ubuntu桌面上,它工作正常,使用 install.packages("rgdal"),选择你附近的一个 cran 镜像,看看是否有效。
-
我尝试按照@EDi 的建议重新安装rgdal,现在它给出了错误
configure: error: proj_api.h not found in standard or given locations. ERROR: configuration failed for package ‘rgdal’ * removing ‘/home/irene/R/i686-pc-linux-gnu-library/3.0/rgdal’ -
对不起,伙计们,我觉得自己很愚蠢,但按照链接 @pradeep6kumar 建议我找到了 $ apt-file search proj_api.h libproj-dev: /usr/include/proj_api.h 所需的包,但我该怎么做安装它?因为 sudo apt-get install /usr/include/proj_api.h 返回 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package /usr/include
-
我从 ubuntugis-unstable ppa 获取包。
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable ; sudo apt-get update; sudo apt-get install libproj-dev
标签: r ubuntu geospatial gdal rgdal