【问题标题】:R make install failing, missing documentsR make install 失败,缺少文件
【发布时间】:2019-09-10 18:40:20
【问题描述】:

我正在尝试从 Ubuntu 18.04 上的 tar.gz 编译和安装 R 3.6.1。在配置和制作期间一切似乎都很好,然后在尝试安装时我得到了这个

installing doc ...
/usr/bin/install: cannot stat 'NEWS': No such file or directory
/usr/bin/install: cannot stat 'NEWS.pdf': No such file or directory
/usr/bin/install: cannot stat 'NEWS.rds': No such file or directory
/usr/bin/install: cannot stat 'NEWS': No such file or directory
/usr/bin/install: cannot stat 'NEWS.pdf': No such file or directory
Makefile:121: recipe for target 'install-sources2' failed
make[1]: *** [install-sources2] Error 1

我不知道是什么原因造成的,之前编译过很多版本都没有问题。

我的配置语句如下所示:

./configure --enable-R-shlib --with-blas=-lopenblas --enable-memory-profiling

知道出了什么问题吗?这是一台新机器,我会缺少一些基本的东西,比如文档或 pdf 处理程序吗? 谢谢, J

【问题讨论】:

  • 我没有给你答案,但你可以考虑使用说明安装 here
  • 感谢 Axeman。我认为这些说明解释了如何下载和安装已经编译的二进制版本。我使用它们多年,但现在我需要连接到 mpi 软件的编译版本。我认为编译后的版本不会自动执行此操作。
  • 当 R 3.6.3 无法做到这一点时,这个问题再次出现:make[1]: Entering directory '/home/fifis/Downloads/R-3.6.3/doc'installing doc .../usr/bin/install: cannot stat 'NEWS.pdf': No such file or directory。在我通过touch doc/NEWS.pdf 创建了一个零字节 NEWS.pdf 后,问题就消失了。
  • @AndreïKostyrka 我鼓励您对答案发表评论,因为我遇到了同样的问题,我不想安装 1GB 的乳胶,因为我从不需要它。

标签: r compilation gnu-make document


【解决方案1】:

在 cmets 提出建议后,我发布了我的解决方案,该解决方案通过 let-them-eat-cake 方法绕过该问题 - 创建必要的零字节文件:

cd doc
touch NEWS NEWS.pdf NEWS.rds

如果缺少其他东西(来自非必要的一堆),您可以轻松地touch 丢失的东西让编译器吞噬假人。

【讨论】:

    【解决方案2】:

    发现问题了!新机器试图让它快速运行并且尚未安装乳胶。安装了 Latex,一切正常。

    显然,这是在配置阶段选择的,但不是致命错误。也许它应该b?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-01-22
      • 1970-01-01
      • 2020-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多