无法在 Ubuntu 20.04 上的 Rstudio 中加载已安装的软件包:sh: 1: make: not found

尼古拉斯弗拉梅尔

例如,我可以使用install.packages()来安装dplyr,但是当我尝试使用 将其加载到会话中时library(),会发生以下情况:

install.packages('dplyr')
    Installing package into ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6’
    (as ‘lib’ is unspecified)
    also installing the dependencies ‘fansi’, ‘purrr’, ‘cli’, ‘utf8’, ‘ellipsis’, ‘glue’, ‘lifecycle’, ‘magrittr’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’

trying URL 'https://cloud.r-project.org/src/contrib/fansi_0.5.0.tar.gz'
Content type 'application/x-gzip' length 301724 bytes (294 KB)
==================================================
downloaded 294 KB

trying URL 'https://cloud.r-project.org/src/contrib/purrr_0.3.4.tar.gz'
Content type 'application/x-gzip' length 375062 bytes (366 KB)
==================================================
downloaded 366 KB

trying URL 'https://cloud.r-project.org/src/contrib/cli_3.0.1.tar.gz'
Content type 'application/x-gzip' length 225589 bytes (220 KB)
==================================================
downloaded 220 KB

trying URL 'https://cloud.r-project.org/src/contrib/utf8_1.2.2.tar.gz'
Content type 'application/x-gzip' length 240327 bytes (234 KB)
==================================================
downloaded 234 KB

trying URL 'https://cloud.r-project.org/src/contrib/ellipsis_0.3.2.tar.gz'
Content type 'application/x-gzip' length 8066 bytes
==================================================
downloaded 8066 bytes

trying URL 'https://cloud.r-project.org/src/contrib/glue_1.4.2.tar.gz'
Content type 'application/x-gzip' length 99049 bytes (96 KB)
==================================================
downloaded 96 KB

trying URL 'https://cloud.r-project.org/src/contrib/lifecycle_1.0.0.tar.gz'
Content type 'application/x-gzip' length 83389 bytes (81 KB)
==================================================
downloaded 81 KB

trying URL 'https://cloud.r-project.org/src/contrib/magrittr_2.0.1.tar.gz'
Content type 'application/x-gzip' length 265580 bytes (259 KB)
==================================================
downloaded 259 KB

trying URL 'https://cloud.r-project.org/src/contrib/rlang_0.4.11.tar.gz'
Content type 'application/x-gzip' length 861727 bytes (841 KB)
==================================================
downloaded 841 KB

trying URL 'https://cloud.r-project.org/src/contrib/tibble_3.1.4.tar.gz'
Content type 'application/x-gzip' length 737787 bytes (720 KB)
==================================================
downloaded 720 KB

trying URL 'https://cloud.r-project.org/src/contrib/tidyselect_1.1.1.tar.gz'
Content type 'application/x-gzip' length 92088 bytes (89 KB)
==================================================
downloaded 89 KB

trying URL 'https://cloud.r-project.org/src/contrib/vctrs_0.3.8.tar.gz'
Content type 'application/x-gzip' length 782608 bytes (764 KB)
==================================================
downloaded 764 KB

trying URL 'https://cloud.r-project.org/src/contrib/pillar_1.6.2.tar.gz'
Content type 'application/x-gzip' length 1130321 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

trying URL 'https://cloud.r-project.org/src/contrib/dplyr_1.0.7.tar.gz'
Content type 'application/x-gzip' length 852103 bytes (832 KB)
==================================================
downloaded 832 KB

* installing *source* package ‘fansi’ ...
** package ‘fansi’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘fansi’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/fansi’
Warning in install.packages :
  installation of package ‘fansi’ had non-zero exit status
* installing *source* package ‘utf8’ ...
** package ‘utf8’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘utf8’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/utf8’
Warning in install.packages :
  installation of package ‘utf8’ had non-zero exit status
* installing *source* package ‘glue’ ...
** package ‘glue’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘glue’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/glue’
Warning in install.packages :
  installation of package ‘glue’ had non-zero exit status
* installing *source* package ‘magrittr’ ...
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘magrittr’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/magrittr’
Warning in install.packages :
  installation of package ‘magrittr’ had non-zero exit status
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: 1: make: not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘rlang’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/rlang’
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status
ERROR: dependencies ‘magrittr’, ‘rlang’ are not available for package ‘purrr’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/purrr’
Warning in install.packages :
  installation of package ‘purrr’ had non-zero exit status
ERROR: dependency ‘glue’ is not available for package ‘cli’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/cli’
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status
ERROR: dependency ‘rlang’ is not available for package ‘ellipsis’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/ellipsis’
Warning in install.packages :
  installation of package ‘ellipsis’ had non-zero exit status
ERROR: dependencies ‘glue’, ‘rlang’ are not available for package ‘lifecycle’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/lifecycle’
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependencies ‘ellipsis’, ‘glue’, ‘rlang’ are not available for package ‘vctrs’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/vctrs’
Warning in install.packages :
  installation of package ‘vctrs’ had non-zero exit status
ERROR: dependencies ‘ellipsis’, ‘glue’, ‘purrr’, ‘rlang’, ‘vctrs’ are not available for package ‘tidyselect’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/tidyselect’
Warning in install.packages :
  installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependencies ‘cli’, ‘ellipsis’, ‘fansi’, ‘lifecycle’, ‘rlang’, ‘utf8’, ‘vctrs’ are not available for package ‘pillar’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/pillar’
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status
ERROR: dependencies ‘ellipsis’, ‘fansi’, ‘lifecycle’, ‘magrittr’, ‘pillar’, ‘rlang’, ‘vctrs’ are not available for package ‘tibble’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/tibble’
Warning in install.packages :
  installation of package ‘tibble’ had non-zero exit status
ERROR: dependencies ‘ellipsis’, ‘glue’, ‘lifecycle’, ‘magrittr’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’ are not available for package ‘dplyr’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.6/dplyr’
Warning in install.packages :
  installation of package ‘dplyr’ had non-zero exit status

R 版本是 3.6.3,我使用 Linux x86_64-pc-linux 文件的发行版安装它,我的 Ubuntu 版本是 20.04,Rstudio 是 1.4.1717。

任何帮助将不胜感激

用户438383

你需要make安装。

尝试运行:

sudo apt-get install build-essential

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

RStudio无法在Ubuntu 16.04上加载RevoScaleR

无法在 ubuntu 上打开 RStudio

无法在 ubuntu 20 上安装 php 7.3

无法安装Google Chrome,因为ubuntu 17.04上未安装“ libgcc1:i386软件包”

无法在ubuntu上安装V8软件包?

无法在Ubuntu 17.04上安装软件包

无法在Ubuntu 16.10 Yakkety上安装软件包

无法在Ubuntu 15.04上安装aptik软件包

以下软件包具有未满足的依赖性:无法安装任何软件。Ubuntu的16:04

在 Ubuntu 16-04 上安装 opencv

备份Linux Mint等Ubuntu上已安装的软件包

Wildfly 20无法在Ubuntu 20上“开箱即用”运行

在 Ubuntu 18.04 - 32 位上安装 RStudio

RStudio在Ubuntu上崩溃

无法在Mac的RStudio中安装RSConnect软件包

无法在RStudio中安装Tidyverse软件包

尝试在Ubuntu 18.04上安装squirrelmail时出现“无法找到软件包”

无法在Ubuntu 19.10上安装软件包nextcloud-client

无法在 Ubuntu 18.04 上安装 i386 软件包

在Ubuntu 16上安装CUDA 8:无法找到cuda软件包

无法在AWS EC2实例Ubuntu上从Amazon Repo安装软件包

无法在Ubuntu上为'pmml'安装'XML'软件包依赖项

Atom 无法在 Ubuntu 上安装任何软件包(错误代码 ELIFECYCLE)

我似乎无法在Ubuntu 16.04 LTS上安装任何软件包

在Ubuntu 16.04上安装docker:无法找到软件包docker-ce

无法在Ubuntu 18.04上安装python2软件包的问题

由于未满足的依赖性,无法在 Ubuntu 18.04 上安装 git 相关软件包

带有 Ubuntu-20-04 的 HP Elitebook 上的触摸板按钮不起作用

无法在Ubuntu 17.04上更新Anaconda软件包