gpt4 book ai didi

r - 无法安装包车

转载 作者:行者123 更新时间:2023-12-02 11:26:18 26 4
gpt4 key购买 nike

我在 Linux mint 17.3 64 位中使用 R 版本 3.2.3。我试图用 dependencies=TRUE 安装包“car” ,但安装失败并显示以下错误消息:

> 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

如何解决问题?请帮忙。

最佳答案

我终于找到了解决方案。查看安装“minqa”的错误信息后,发现安装程序找不到gfortran .所以我安装了gfortran,然后再次尝试安装“car”。这次我收到另一条错误消息,说 -llapack -lblas没有找到。因此,根据此链接:/usr/bin/ld: cannot find -llapack
我安装了软件包 "liblapack-dev" , "liblapack3" , "libopenblas-base""libopenblas-dev" .之后,“car”包就安装成功了。

关于r - 无法安装包车,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35647650/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com