在 R 3.4.4 上安装 swirl 时出现问题,Linux Mint Sonya

Issues while installing swirl on R 3.4.4, Linux Mint Sonya

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

Swirl installation error screenshot

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’

然后我在互联网上搜索了可能的解决方案,所以我尝试按照 link:

中的步骤操作

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

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

Libcurl installation screenshot

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

我也试过安装 stringi, openssl and httr 之类的依赖项。并且只有stringi个安装成功,其余的都是同样的错误。

在 运行 之后有效:

sudo apt-get install libssl-dev

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

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