0

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

漩涡安装错误截图 在此处输入图像描述

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) library(swirl) 中的错误:没有名为“swirl”的包</p>

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

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

安装 libcurl 时出现了一些问题,但我上次这样做时似乎还不错。

Libcurl 安装截图 在此处输入图像描述

我重新尝试从 R 工作室安装 swirl,但错误仍然相同。

我还尝试安装依赖项,例如stringi, openssl and httr. 只有stringi安装成功,其余的都有同样的错误。

4

1 回答 1

2

它运行后工作:

sudo apt-get install libssl-dev

在薄荷终端。然后在R中,

install.packages("swirl", dependencies = TRUE)

于 2018-09-21T04:53:22.547 回答