【问题标题】:Installing geoR on Ubuntu 16.04在 Ubuntu 16.04 上安装 geoR
【发布时间】:2017-03-22 10:54:10
【问题描述】:

我在运行时在 ubuntu 16.04 上安装 geoR 包时遇到问题

>install.packages('geoR', dependencies = TRUE)

我收到以下错误消息

/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 包,以及当我尝试运行时

>install.packages('RandomFieldsUtils')

我遇到同样的错误

/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 控制台中都尝试过,两次都收到相同的消息。

知道怎么解决吗?

提前致谢

【问题讨论】:

  • 也尝试 install.packages("RandomFields")
  • 这也是同样的错误
  • 即使安装了开发版本,它也存在 RandomFieldsUtils 依赖项的问题。我还尝试从CRAN 下载 RandomFieldsUtils 包源并从那里安装它,但它再次给出了相同的错误。没有想法
  • 好吧,使用 windows 哈哈

标签: r ubuntu install.packages geor


【解决方案1】:

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

将此答案发布给自己,以防它可以帮助任何人!

【讨论】:

    猜你喜欢
    • 2017-04-12
    • 2018-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-23
    • 2021-09-11
    • 2018-04-26
    相关资源
    最近更新 更多