Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am trying to install openssl package in R using Ubuntu 18.04 without success

Tags:

r

openssl

I try to install the Openssl package in R (using RStudio in Ubuntu 18.04), but I get the error "undefined symbol: RSA_pkey_ctx_ctrl":

Error: package or namespace load failed for ‘openssl’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl/libs/openssl.so':
  /home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl/libs/openssl.so: undefined symbol: RSA_pkey_ctx_ctrl
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl’
Warning in install.packages :
  installation of package ‘openssl’ had non-zero exit status.

I have already tried to install through both RStudio and Terminal, but as I am relatively new to Ubuntu, I did not have any success. I have the tar.gz file downloaded, but I don't know what should I do with it.

I actually want to use packages httr and ggmap, but they both require openssl.

like image 893
Danilo Steckelberg Avatar asked Apr 28 '19 18:04

Danilo Steckelberg


People also ask

How do I install a package in R?

Open R via your preferred method (icon on desktop, Start Menu, dock, etc.) Click “Packages” in the top menu then click “Install package(s)”. Choose a mirror that is closest to your geographical location. Now you get to choose which packages you want to install.

How to install OpenSSL in R?

Try sudo apt-get install r-cran-openssl -- the package is part of the distribution and ready pre-made as a binary. and after that try to install package openssl in R again.

How do I install OpenSL on Ubuntu 18 04?

Guide to install the latest version of openssl 1.1.1b on Ubuntu 18.04. Step 1 : Download openssl 1.1.1b Download the latest openssl 1.1.1b release from from Ubuntu source package….

How to get the latest version of OpenSSL on Ubuntu?

The default toolket of OpenSSL that comes with Ubuntu isn’t the latest. To get the latest, you must download it yourself and install. Guide to install the latest version of openssl 1.1.1b on Ubuntu 18.04.

Why can’t I install R packages on Ubuntu?

Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04 . The problem is related to the use of the shared library libcurl.


1 Answers

Try in terminal:

sudo apt-get install libssl-dev

and after that try to install package openssl in R again.

like image 56
Branimir Hackenberger Avatar answered Nov 04 '22 21:11

Branimir Hackenberger