【问题标题】:R: I can't install package "drc" in R 3.0.1R:我无法在 R 3.0.1 中安装包“drc”
【发布时间】:2014-06-14 00:51:03
【问题描述】:

我将 R (2.15.3) 与 Dose-Rresponse-Curve 包 (drc) 一起使用。现在我在 3.0.1 版中安装了 Linux Mint 16 和 R。但是尝试安装软件包 drc 我得到一个错误。有人知道我能做什么吗?我已经重新安装了R。是因为新版本吗?还是有其他原因。我使用 Linux Mint 16。

非常感谢您的帮助。

错误:

> install.packages("drc")
Installing package into ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘gtools’

versuche URL 'http://cran.rstudio.com/src/contrib/gtools_3.4.0.tar.gz'
Content type 'application/x-gzip' length 56047 bytes (54 Kb)
URL geöffnet
==================================================
downloaded 54 Kb

versuche URL 'http://cran.rstudio.com/src/contrib/drc_2.3-96.tar.gz'
Content type 'application/x-gzip' length 233535 bytes (228 Kb)
URL geöffnet
==================================================
downloaded 228 Kb

* installing *source* package ‘gtools’ ...
** Paket ‘gtools’ erfolgreich entpackt und MD5 Summen überprüft
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c setTCPNoDelay.c -o setTCPNoDelay.o
In file included from setTCPNoDelay.c:1:0:
/usr/share/R/include/R.h:28:20: fatal error: stdlib.h: Datei oder Verzeichnis nicht gefunden
 #include <stdlib.h>
                    ^
compilation terminated.
make: *** [setTCPNoDelay.o] Fehler 1
ERROR: compilation failed for package ‘gtools’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.0/gtools’
Warning in install.packages :
  installation of package ‘gtools’ had non-zero exit status
ERROR: dependency ‘gtools’ is not available for package ‘drc’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.0/drc’
Warning in install.packages :
  installation of package ‘drc’ had non-zero exit status

【问题讨论】:

    标签: linux r installation package


    【解决方案1】:

    linux-x86_64 上的gtools 似乎有问题。 CRAN Check Results 返回错误消息。您可以在CRAN Archive 中安装以前版本的gtools。尝试安装以前版本的gtools,然后再次安装drc

    【讨论】:

    • 感谢您的回答。如果尝试了gtools 的每个版本,但没有任何效果。现在我尝试安装旧版本的 R 并在编译时出现此错误:configure: error: No F77 compiler found。但gcc 已安装。
    猜你喜欢
    • 1970-01-01
    • 2021-02-12
    • 2020-10-13
    • 1970-01-01
    • 1970-01-01
    • 2020-07-02
    • 1970-01-01
    • 2021-11-30
    • 2018-09-24
    相关资源
    最近更新 更多