![](/img/trans.png)
[英]Non-zero exit status package installation error on RStudio server
[英]install.package("matlib") shows non-zero exit status error in RStudio
我试过 install.package() function 以及通过 tar.gz 文件安装,但每次它都显示相同的错误,即non-zero exit status
。
请问有人可以告诉如何下载matlib? 我在 Ubuntu 16.04 中安装了R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
。
Error::::::::
> install.packages("matlib")
Installing package into ‘/home/harsh/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘car’ is not available
--2020-08-03 15:07:43-- https://cran.rstudio.com/src/contrib/matlib_0.9.3.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 2600:9000:21f0:8000:6:c2d3:f940:93a1, 2600:9000:21f0:8600:6:c2d3:f940:93a1, 2600:9000:21f0:9800:6:c2d3:f940:93a1, ...
Connecting to cran.rstudio.com (cran.rstudio.com)|2600:9000:21f0:8000:6:c2d3:f940:93a1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 220211 (215K) [application/x-gzip]
Saving to: ‘/tmp/Rtmpb8wWqf/downloaded_packages/matlib_0.9.3.tar.gz’
0K .......... .......... .......... .......... .......... 23% 428K 0s
50K .......... .......... .......... .......... .......... 46% 457K 0s
100K .......... .......... .......... .......... .......... 69% 217K 0s
150K .......... .......... .......... .......... .......... 93% 487K 0s
200K .......... ..... 100% 500K=0.6s
2020-08-03 15:07:44 (365 KB/s) - ‘/tmp/Rtmpb8wWqf/downloaded_packages/matlib_0.9.3.tar.gz’ saved [220211/220211]
ERROR: dependency ‘car’ is not available for package ‘matlib’
* removing ‘/home/harsh/R/x86_64-pc-linux-gnu-library/3.2/matlib’
Warning in install.packages :
installation of package ‘matlib’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpb8wWqf/downloaded_packages’
安装 package 应安装其依赖项。 如果失败,您可能需要手动安装依赖项。 如果当前版本的car
需要比您使用的R
更新的版本,则安装car
package 可能会失败。 R.Version()
function 将告诉您您正在使用哪个R
版本。 在安装car
之前,您可能需要更新到R
的当前版本。
就我而言, cmake
下缺少 cmake。 从控制台安装如下sudo apt install cmake
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.