问题描述
我在Dose-Rresponse-Curve软件包(drc)中使用了R(2.15.3).现在,我在3.0.1版中安装了Linux Mint 16和R.但是正在尝试安装软件包drc时出现错误.有人知道我能做什么吗?我已经重新安装了R.是否是因为新版本?还是还有其他原因.我使用Linux Mint 16.
I used R (2.15.3) with the Dose-Rresponse-Curve package (drc). Now i installed Linux Mint 16 and R in version 3.0.1. But is try to install the package drc I get an error. Has someone an idea what i can to? I have already re-installed R. Is it because the new version? Or is there an other reason. I use 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-x86_64上,gtools
似乎存在问题. CRAN检查结果返回错误消息.您可以在 CRAN存档中安装gtools
的早期版本.尝试安装早期版本的gtools
,然后再次安装drc
.
There seems to be a problem with gtools
on linux-x86_64. The CRAN Check Results return an error message. You can install previous versions of gtools
in the CRAN Archive. Try installing a previous version of gtools
and then drc
again.
这篇关于R:我无法安装软件包"drc"在R 3.0.1中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!