首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu16.04上安装geoR

在Ubuntu16.04上安装geoR
EN

Stack Overflow用户
提问于 2017-03-22 10:54:10
回答 1查看 570关注 0票数 0

运行时,我在ubuntu16.04上安装geoR软件包时遇到了问题

代码语言:javascript
复制
>install.packages('geoR', dependencies = TRUE)

我收到以下错误消息

代码语言:javascript
复制
/usr/lib/R/etc/Makeconf:141: recipe for target 'RFoptions.o' failed
make: *** [RFoptions.o] Error 1
ERROR: compilation failed for package ‘RandomFieldsUtils’
* removing ‘/home/luca/R/x86_64-pc-linux-gnu-library/3.2/RandomFieldsUtils’

The downloaded source packages are in
    ‘/tmp/Rtmph5zmhR/downloaded_packages’
Warning message:
In install.packages("RandomFieldsUtils") :
  installation of package ‘RandomFieldsUtils’ had non-zero exit status
> 
> install.packages('geoR', dependencites = TRUE)
Installing package into ‘/home/luca/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘RandomFieldsUtils’, ‘RandomFields’

Error in download.file(url, destfile, method, mode = "wb", ...) : 
  unused argument (dependencites = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘RandomFieldsUtils’ failed
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  unused argument (dependencites = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘RandomFields’ failed
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  unused argument (dependencites = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘geoR’ failed

在我看来,问题在于RandomFieldsUtils包,以及当我试图运行时

代码语言:javascript
复制
>install.packages('RandomFieldsUtils')

我也犯了同样的错误

代码语言:javascript
复制
/usr/lib/R/etc/Makeconf:141: recipe for target 'RFoptions.o' failed
make: *** [RFoptions.o] Error 1

ERROR: compilation failed for package ‘RandomFieldsUtils’
* removing ‘/home/luca/R/x86_64-pc-linux-gnu-library/3.2/RandomFieldsUtils’

The downloaded source packages are in
    ‘/tmp/Rtmph5zmhR/downloaded_packages’
Warning message:
In install.packages("RandomFieldsUtils") :
  installation of package ‘RandomFieldsUtils’ had non-zero exit status

我对R非常陌生,在R Studio和Ubuntu控制台中都尝试过这一点,得到了两次相同的消息。

知道怎么修吗?

提前感谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-22 14:10:03

玩了一会儿之后,我通过直接从贡献者的网站下载第二到最新版本的网站(即0.3.16而不是0.3.20)并从包中安装它。

张贴这个答案给我自己,以防它可以帮助任何人!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42949527

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档