gpt4 book ai didi

r - 在 R 3.4.4、Linux Mint Sonya 上安装 swirl 时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 10:06:11 25 4
gpt4 key购买 nike

我尝试从 R studio 在我的系统上安装 swirl,但出现以下错误:

Swirl installation error screenshot enter image description here

ERROR: configuration failed for package ‘openssl’
* removing ‘/home/dipti/R/x86_64-pc-linux-gnu-library/3.4/openssl’
Warning in install.packages :
installation of package ‘openssl’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/home/dipti/R/x86_64-pc-linux-gnu-library/3.4/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘swirl’
* removing ‘/home/dipti/R/x86_64-pc-linux-gnu-library/3.4/swirl’
Warning in install.packages :
installation of package ‘swirl’ had non-zero exit status

The downloaded source packages are in
‘/tmp/Rtmpbp61si/downloaded_packages’

library(swirl) Error in library(swirl) : there is no package called ‘swirl’

然后我在互联网上搜索了可能的解决方案,所以我尝试按照此链接中的步骤操作:

https://github.com/swirldev/swirl/wiki/Installing-swirl-on-Linux

安装 libcurl 时出现了一些问题,但我上次安装时似乎没问题。

Libcurl installation screenshot enter image description here

我尝试从 R studio 安装 swirl,但错误仍然相同。

我还尝试安装依赖项,如 stringi、openssl 和 httr。并且只有stringi安装成功,其余的都是同样的错误。

最佳答案

运行后成功了:

sudo apt-get install libssl-dev

在 Mint 终端上。然后在 R 中,

install.packages("漩涡", dependencies = TRUE)

关于r - 在 R 3.4.4、Linux Mint Sonya 上安装 swirl 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52417605/

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