簡體   English   中英

在Ubuntu 16.04上安裝geoR

[英]Installing geoR on Ubuntu 16.04

我在運行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控制台中都嘗試過此操作,兩次得到相同的消息。

知道如何解決嗎?

提前致謝

經過一番嘗試后,我設法從貢獻者的網站上直接下載了第二版的RandomFieldsUtils(即0.3.16而不是0.3.20),並從軟件包中進行安裝。

將此答案發布給自己,以防它對任何人都有幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM