安装包" chron"在R

时间:2016-02-28 16:07:21

标签: r gcc ubuntu-14.04 chron

运行Ubuntu 14.04并在R上安装软件包chron时,我收到以下消息:

* installing *source* package ‘chron’ ...
** package ‘chron’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c chron_strs.c -o chron_strs.o
gcc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [chron_strs.o] Error 1
ERROR: compilation failed for package ‘chron’
* removing ‘/home/ncoupe/R/x86_64-pc-linux-gnu-library/3.2/chron’

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

任何建议 谢谢 纳塔利娅

1 个答案:

答案 0 :(得分:2)

chron有几个非R依赖项。最简单的安装方法是

sudo apt-get update
sudo apt-get install r-cran-chron