试图在Fedora Tidyverse的依赖项上安装R Studio中安装Tidyverse时不会安装

问题描述 投票:0回答:2
Warning in install.packages :
  installation of package ‘googledrive’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’, ‘ids’ are not available for package ‘googlesheets4’
* removing ‘/home/lanewhitten/R/x86_64-redhat-linux-gnu-library/4.0/googlesheets4’
Warning in install.packages :
  installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’ are not available for package ‘tidyverse’
* removing ‘/home/lanewhitten/R/x86_64-redhat-linux-gnu-library/4.0/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpxCRrL7/downloaded_packages’
这是我错误消息的尾巴。 IVE已经使用

在Fedora上安装了卷曲

sudo dnf install curl
关于如何解决此问题,切换操作系统或运行虚拟机是我的总损失。
    

需要安装错误消息中未指定的开发软件包
r linux tidyverse fedora
2个回答
6
投票
sudo dnf install libcurl-devel sudo dnf install openssl-devel then do install.packages("tidyverse")

这将使您在Fedora上的R体验变得更加容易

3
投票
install.packages()

会编译您从源安装的任何软件包。许多软件包要求将开发人员库安装在系统上进行编译。这些包的缺乏就是为什么您遇到了错误。

总的来说,自己编译包装远非理想。所有软件包将需要更长的时间安装。尤其是当您不经常进行它们时,更新将永远存在。另外,找出与旁边安装的系统开发人员软件包也可能很耗时,尤其是对于初学者而言。

luckily,有一个Fedora的COPR存储库,可为All

Cran包提供最新的二进制文件。您要做的就是在系统终端中运行这几行(不是R控制台):

sudo dnf install 'dnf-command(copr)' sudo dnf copr enable iucar/cran sudo dnf install R-CoprManager

在r中,将通过系统软件包管理器安装所需的软件包。这也意味着每当您运行

install.packages()或使用桌面环境软件管理GUI时,您将收到R软件包更新。 您可以在Cran网站上找到有关此文件的文档。 update:fordora

的rstudio
如果您使用的是R,则可能也需要Rstudio。从Fedora 41开始,Rstudio不再可通过Fedora Repos获得。那是因为Rstudio从QT切换到电子。幸运的是,制作Cran Copr回购的同一位作者也为Rstudio提供了一个:

dnf update

    

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.