0

I tried installing swirl on my system from the R studio, and got the following error:

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’

And then I searched the internet for possible solutions, so I tried following the steps from this link:

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

There were some issues while installing libcurl, but seems fine when I did this the last time.

Libcurl installation screenshot enter image description here

I retried installing swirl from the R studio, but still, the error is same.

I also tried installing dependencies like stringi, openssl and httr. And only stringi was successfully installed, both the remaining others had the same error.

Tung
  • 26,371
  • 7
  • 91
  • 115
Dipti
  • 85
  • 2
  • 9
  • Can you edit your question and state/include clearly what errors you're having? [This is me after reading your post :)](https://media.giphy.com/media/BmmfETghGOPrW/giphy.gif) – Tung Sep 20 '18 at 04:40
  • Hahaha, I'd attached the screenshot, so didn't feel necessary to include the errors. They're there now, could you suggest something? – Dipti Sep 20 '18 at 04:47
  • Try this first `sudo apt-get install libssl-dev` in your Mint terminal. Then in R, install.packages("swirl", dependencies = TRUE) – Tung Sep 20 '18 at 05:06
  • 1
    Yes, that worked!! Thank you! :D – Dipti Sep 20 '18 at 05:35
  • You're welcome! Can you post it as an answer to help future readers? Thx – Tung Sep 20 '18 at 06:01
  • 1
    Yeah, sure. I will! – Dipti Sep 21 '18 at 04:51

1 Answers1

2

It worked after running:

sudo apt-get install libssl-dev

on the Mint terminal. Then in R,

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

Tung
  • 26,371
  • 7
  • 91
  • 115
Dipti
  • 85
  • 2
  • 9