Rstudio error "R shared library (/usr/local/lib/R/lib/ not found."

I'm trying to install R 3.6.3 and Rstudio on my Ubuntu 18.04.
R 3.6.3 works on the command line but when I try to run using the shortcut created on the desktop the error appears:

R shared library (/usr/local/lib/R/lib/ not found. If it is a custom build of R, was it built if the --enable-R-shlib option?
What can I do to solve this problem and start Rstudio?

Note 1:
I noticed that this library is at:
#where is the problem library
marco @ marco-Aspire-A515-51: ~ / Downloads / R-3.6.3 $ locate

Note 2: R and Rstudio are in different locations. Look:
#where is Rstudio
marco @ marco-Aspire-A515-51: ~ $ which rstudio
/ usr / bin / rstudio

where is R 3.6.3

marco @ marco-Aspire-A515-51: ~ $ which R version 3.6.3
/ usr / local / bin / R

Note 3: R 3.6.3 I installed in the Downloads folder.

1 Like

I just copy the file that was in the R folder /home/lemp/R-3.6.3/lib/
to the /usr/local/lib/R/lib/
and start succesfully Rstudio

sudo cp /home/lemp/R-3.6.3/lib/ /usr/local/lib/R/lib/

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.