如何安装软件包';硬币';在R 3.1.3中

如何安装软件包';硬币';在R 3.1.3中,r,installation,package,R,Installation,Package,我正在使用R3.1.3,我需要安装软件包coin,以便能够从wilcoxon测试的输出中提取z值,如前所述 我尝试安装coin库,但出现以下错误: /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make: *** [coin.so] Error 1 ERROR: compilation failed for package

我正在使用R3.1.3,我需要安装软件包
coin
,以便能够从wilcoxon测试的输出中提取z值,如前所述

我尝试安装
coin
库,但出现以下错误:

/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [coin.so] Error 1
ERROR: compilation failed for package ‘coin’
* removing ‘/home/hlabbeg1/R/i486-pc-linux-gnu-library/3.1/coin’
Warning in install.packages :
  installation of package ‘coin’ had non-zero exit status
Error in rawToChar(block[seq_len(ns)]) : 
  embedded nul in string: 'PK\003\004\n\0\0\0\0\0\xb1\004\x8fF\0\0\0\0\0\0\0\0\0\0\0\0\005\0\0\0coin/PK\003\004\024\0\002\0\b\0\xae\004\x8fF\xce\xe2\x91\xcb6\002\0\0:\006\0\0\r\0\0\0coin/CITATION\xad\x93Qo\xda0\020ǟɧ8\xf9)Hi\xa0\xa0\xb1\b\xa9\017'
我尝试安装包
lblas
lgfortran
,但在这两种情况下,我都收到一条消息,说这些包不适用于R版本3.1.3。我甚至在起重机上都找不到

尝试直接安装软件包时会出现以下错误:

/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [coin.so] Error 1
ERROR: compilation failed for package ‘coin’
* removing ‘/home/hlabbeg1/R/i486-pc-linux-gnu-library/3.1/coin’
Warning in install.packages :
  installation of package ‘coin’ had non-zero exit status
Error in rawToChar(block[seq_len(ns)]) : 
  embedded nul in string: 'PK\003\004\n\0\0\0\0\0\xb1\004\x8fF\0\0\0\0\0\0\0\0\0\0\0\0\005\0\0\0coin/PK\003\004\024\0\002\0\b\0\xae\004\x8fF\xce\xe2\x91\xcb6\002\0\0:\006\0\0\r\0\0\0coin/CITATION\xad\x93Qo\xda0\020ǟɧ8\xf9)Hi\xa0\xa0\xb1\b\xa9\017'
你知道如何安装这些软件包吗?这样我就可以得到
coin


谢谢。

您需要在Linux.Hi@Pascal上安装
blas
gfortran
。我可以从错误消息中看出这一点。正如我所说,我试图安装blas(和lblas)和lgfortran,但每次我都收到消息说它们不适用于R3.1.3版本。如果你仔细阅读我的评论,我说的是Linux,而不是R。它们是Linux库。你是对的@Pascal。我没想到我会错过通用linux库。很难找到blass包,它在我的存储库中有不同的名称。最后,我安装了这两个软件包,然后只需使用
install.packages()
函数即可安装
coin