2017-05-29 99 views
1

我試圖在Debian jessie機器上安裝R(版本3.1.1 64位)中的'forecast'包。錯誤:在rrst中編譯包'rlang'時編譯失敗 - Debian jessie 8.0

我已經安裝了我的分析所需的其他R包。但是,當我嘗試安裝「預測」包時,它需要依賴關係,即rlang,tipple和ggplot2。從錯誤日誌(如下所示)中看,tipple和ggplot2需要安裝rlang才能安裝它們。

gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c sexp.c -o sexp.o

gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c splice.c -o splice.o

In file included from splice.c:2:0:

vector.h: In function ‘namespace_rlang_sym’:

vector.h:94:19: error: ‘R_DoubleColonSymbol’ undeclared (first use in this function) return(Rf_lang3(R_DoubleColonSymbol, rlang_sym, sym)); ^ vector.h:94:19: note: each undeclared identifier is reported only once for each function it appears in

/usr/lib/R/etc/Makeconf:128: recipe for target 'splice.o' failed

make: *** [splice.o] Error 1

ERROR: compilation failed for package ‘rlang’

  • removing ‘/usr/local/lib/R/site-library/rlang’

Warning in install.packages : installation of package ‘rlang’ had non-zero exit status ERROR: dependency ‘rlang’ is not available for package ‘tibble’ * removing ‘/usr/local/lib/R/site-library/tibble’

Warning in install.packages : installation of package ‘tibble’ had non-zero exit status ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’ * removing ‘/usr/local/lib/R/site-library/ggplot2’

Warning in install.packages : installation of package ‘ggplot2’ had non-zero exit status ERROR: dependency ‘ggplot2’ is not available for package ‘forecast’ * removing ‘/usr/local/lib/R/site-library/forecast’

Warning in install.packages : installation of package ‘forecast’ had non-zero exit status

rlang安裝失敗並顯示上述錯誤消息。任何專家的幫助將不勝感激。

+0

rlang的下一個版本(將在8月下旬發佈)將與R 3.1兼容。 – lionel

回答

1

我認爲這個問題是你的R版本,它基於this issue,它產生了same error。一些「tidyverse」包如tibblerlang是相當新的,需要更新的R版本。

所以:嘗試更新您的R版本。最新的是3.4.0。

+0

升級版本(3.1.1-> 3.4.0)適用於我。 –

+0

嗨,我使用的版本3.4.1仍然有問題,順便說一句我只是更新R核心從3.4.0到3.4.1,錯誤信息是'/usr/include/R/Rinternals.h:940:13:錯誤:初始化參數2'const char * Rf_reEnc(const char *,cetype_t,cetype_t,int)'[-fpermissive] const char * Rf_reEnc(const char * x,cetype_t ce_in,cetype_t ce_out,int subst);' – cinqS