我試圖在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安裝失敗並顯示上述錯誤消息。任何專家的幫助將不勝感激。
rlang的下一個版本(將在8月下旬發佈)將與R 3.1兼容。 – lionel