12

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.

1

1 Answer 1

24

Try in terminal:

sudo apt-get install libssl-dev 

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.