在R 3.4.4,Linux Mint Sonya上安装漩涡时出现的问题

时间:2018-09-20 04:29:07

标签: r linux linuxmint rcurl swirl

我尝试从R studio在系统上安装漩涡,并收到以下错误:

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’
  

图书馆(漩涡)   库(漩涡)中存在错误:没有名为“漩涡”的软件包

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

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

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

Libcurl installation screenshot enter image description here

我尝试从R studio安装漩涡,但仍然是相同的错误。

我还尝试安装stringi, openssl and httr之类的依赖项。并且仅成功安装了stringi,其余两个都具有相同的错误。

1 个答案:

答案 0 :(得分:1)

运行后运行正常:

sudo apt-get install libssl-dev

在薄荷终端上的

。然后在R中,

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