Udi Udi - 1 month ago 30
Linux Question

Installing devtools fails because of dependency, but dependency is not available for the R version I have

configure: error:
---------------------------------------------
OpenSSL library required

Please install:
libssl-dev (deb) or openssl-devel (rpm)
---------------------------------------------
See `config.log' for more details
ERROR: configuration failed for package ‘git2r’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/git2r’
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/home/udi/R/x86_64-pc-linux-gnu-library/3.2/devtools’


However, when I try to install libssl-dev (I have Ubuntu 14.04.3) then I got the message "‘libssl-dev’ is not available (for R version 3.2.2)".

Any idea what to do? Download a new R version or is there any other solution?

Answer Source

That is a system package - not a R package. From the command line you can run

sudo apt-get install libssl-dev