Please help if you are able.
I have searched online and re-installed R several times to no avail
I get the following:
install.packages("swirl")
Installing package into ‘/home/ds/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘openssl’, ‘httr’
trying URL 'https://cran.rstudio.com/src/contrib/openssl_0.9.4.tar.gz'
Content type 'application/x-gzip' length 1165388 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/httr_1.2.1.tar.gz'
Content type 'application/x-gzip' length 133398 bytes (130 KB)
downloaded 130 KB
trying URL 'https://cran.rstudio.com/src/contrib/swirl_2.4.2.tar.gz'
Content type 'application/x-gzip' length 98565 bytes (96 KB)
downloaded 96 KB
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
ERROR: configuration failed for package ‘openssl’
Thanks. Yes, I did when initially installing. I made sure to get the most recent version of R available (3.3.1), installed RStudio, and installed libcurl.
It was only when I tried to install swirl that I ran into problems.
It seems that R does not recognize that openssl is installed.
I had just done a clean install of Ubuntu, so R was being installed for the first time.
What happens if you try install.packages("openssl")
?
Got it thanks!!!
I had been back and forth so many times and gotten the following ANTICONF ERROR, but thought that openssl was already installed via
"Install libcurl.
This is required for the RCurl package, which swirl uses to download courses from the internet.
$ sudo apt-get install libcurl4-openssl-dev "
which led me to believe it had something to do with PATH
But your advice paid off. Thank you!
install.packages("openssl") led to this:
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
So then to linux prompt:
$ sudo apt-get install libssl-dev
and then back to R
install.packages("openssl")
which was successful
then
install.packages("swirl")
library(swirl)
| Hi! Type swirl() when you are ready to begin.
:)
Yay awesome! Let me know if you run into any other issues.
thanks very much, I'll just comment this so maybe the search improves
worked great on linux mint sylvia
Most helpful comment
Got it thanks!!!
I had been back and forth so many times and gotten the following ANTICONF ERROR, but thought that openssl was already installed via
4 on https://github.com/swirldev/swirl/wiki/Installing-swirl-on-Linux:
"Install libcurl.
This is required for the RCurl package, which swirl uses to download courses from the internet.
$ sudo apt-get install libcurl4-openssl-dev "
which led me to believe it had something to do with PATH
But your advice paid off. Thank you!
install.packages("openssl") led to this:
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=..
So then to linux prompt:
$ sudo apt-get install libssl-dev
and then back to R
install.packages("openssl")
which was successful
then
install.packages("swirl")
and finally:
library(swirl)
| Hi! Type swirl() when you are ready to begin.
:)