R:编译问题

时间:2015-12-12 13:53:12

标签: r ubuntu


我想自己编译R源代码 为此,我已经使用这些命令安装了所有必需的软件包和另外两个

sudo apt-get build-dep r-recommended
sudo apt install libicu-dev gobjc-5

然后,我运行常用命令以配置两个附加选项

./configure --enable-R-shlib --with-ICU

到目前为止一切正常,但是当我尝试使用make命令进行编译时,在某个时刻我收到了这些错误消息

make[2]: Entering directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
begin installing recommended package MASS
Error in untar2(tarfile, files, list, exdir, restore_times) : 
  incomplete block on file
Makefile:51: recipe for target 'MASS.ts' failed
make[2]: *** [MASS.ts] Error 1
make[2]: Leaving directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
Makefile:39: recipe for target 'recommended-packages' failed
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory '/home/myuser/Downloads/R-3.2.3/src/library/Recommended'
Makefile:77: recipe for target 'stamp-recommended' failed
make: *** [stamp-recommended] Error 2

我在网上搜索过,但我还没有弄清楚导致错误的原因。

提前致谢。

OS:Ubuntu 15.10 64bit

1 个答案:

答案 0 :(得分:1)

简言之:

  • 您可能需要apt-get build-dep r-base来获取构建依赖项,而不是apt-get build-dep r-recommended

  • 您的错误也来自于尝试构建推荐的软件包,您需要额外的下载步骤,如文档中所述

  • 因此,请在配置调用中添加--without-recommended-packages