无法安装包车 [英] Unable to install package car
问题描述
我在 Linux mint 17.3 64 位中使用 R 版本 3.2.3.我试图用 dependencies=TRUE
安装包car",但安装失败并显示以下错误消息:
I am using R version 3.2.3 in Linux mint 17.3 64 bit. I was trying to install the package "car" with dependencies=TRUE
, but the installation failed with the following error messages:
> warnings()
Warning messages:
1: In install.packages("car", dependencies = T) :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("car", dependencies = T) :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("car", dependencies = T) :
installation of package ‘leaps’ had non-zero exit status
4: In install.packages("car", dependencies = T) :
installation of package ‘lmtest’ had non-zero exit status
5: In install.packages("car", dependencies = T) :
installation of package ‘rgl’ had non-zero exit status
6: In install.packages("car", dependencies = T) :
installation of package ‘SparseM’ had non-zero exit status
7: In install.packages("car", dependencies = T) :
installation of package ‘quantreg’ had non-zero exit status
8: In install.packages("car", dependencies = T) :
installation of package ‘lme4’ had non-zero exit status
9: In install.packages("car", dependencies = T) :
installation of package ‘effects’ had non-zero exit status
10: In install.packages("car", dependencies = T) :
installation of package ‘pbkrtest’ had non-zero exit status
11: In install.packages("car", dependencies = T) :
installation of package ‘car’ had non-zero exit status
12: In install.packages("car", dependencies = T) :
installation of package ‘alr4’ had non-zero exit status
我该如何解决这个问题?请帮忙.
How do I resolve the issue? Please help.
推荐答案
我终于找到了解决方案.查看安装minqa"的错误信息后,我意识到安装程序无法找到gfortran
.所以我安装了gfortran,然后再次尝试安装car".这次我收到另一条错误消息,说没有找到 -llapack -lblas
.因此,根据此链接:/usr/bin/ld:找不到-llapack一>我安装了包 "liblapack-dev"
、"liblapack3"
、"libopenblas-base"
和 "libopenblas-dev"代码>.之后,car"包就安装成功了.
I finally found the solution. After looking at the error message for installing "minqa", I realized that the installer was unable to find gfortran
. So I installed gfortran,then tried to install "car" again. This time I got another error message saying that -llapack -lblas
were not found. Therefore, according to this link: /usr/bin/ld: cannot find -llapack
I installed packages "liblapack-dev"
, "liblapack3"
, "libopenblas-base"
and "libopenblas-dev"
. After that, the "car" package was successfully installed.
这篇关于无法安装包车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!