加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

无法在Red Hat linux上安装rgdal和rgeos R库

发布时间:2020-12-14 02:20:20 所属栏目:Linux 来源:网络整理
导读:我在redhat linux机器上编译rgdal adn rgoes包时遇到错误.我试图做一些研究,但找不到可能的解决方案.能否帮助我解决这个问题,因为这对我来说非常重要. **ERROR WHILE COMPILING RGDAL in R 3.0****strong text*** installing *source* package argdala ...**
我在redhat linux机器上编译rgdal adn rgoes包时遇到错误.我试图做一些研究,但找不到可能的解决方案.能否帮助我解决这个问题,因为这对我来说非常重要.
**ERROR WHILE COMPILING RGDAL in R 3.0**

**strong text**
* installing *source* package argdala ...
** package argdala successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 0.8-10
checking for /usr/bin/svnversion... yes
configure: svn revision: 496
configure: gdal-config: gdal-config
checking gdal-config usability... ./configure: line 1397: gdal-config: command not found
no
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries,you can
download the source from  http://www.gdal.org/
If you have installed the GDAL libraries,then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. If not,use:
--configure-args='--with-gdal-config=/usr/local/bin/gdal-config'
with appropriate values for your installation.

ERROR: configuration failed for package argdala


*****ERROR WHILE COMPILING RGEOS:*****
**strong text**
* installing *source* package argeosa ...
** package argeosa successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgeos: 0.2-17
checking for /usr/bin/svnversion... yes
configure: svn revision: 413M
checking geos-config usability... ./configure: line 1385: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package argeosa

解决方法

在fedora 20上,你需要安装geos和geos-devel!
sudo yum install geos geos-devel

之后,R中的编译工作得很好!

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读