Unable to install rgdal and rgeos R libraries on Red hat linux

 ̄綄美尐妖づ 提交于 2019-12-05 00:54:34

On fedora 20 you need to install geos and geos-devel !

sudo yum install geos geos-devel

After that the compilation in R work well!

** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (gstat)

The downloaded source packages are in
    ‘/tmp/Rtmp9ciIzG/downloaded_packages’

I'm not on redhat (I'm on Ubuntu) so someone who is may be able to give better package names.. . But, when installing packages from source, you need the dev of the required libraries. In this case, you probably need to install:

libgdal1-dev
libgeos-dev

So:

yum install libgdal1 libgdal1-dev libgeos libgeos-dev

Then in R:

install.packages('gdal')

this is untested, since I don't want all the extra packages associated with those two!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!