Ubuntu 21.1
I updated RStudio to the most recent version and then updated R to 4.1.2 and RStudio is now giving me this error
R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?
There was a similar problem reported here but the solution does not work as I have no /home/jrkrideau/R-4.1.2/lib/ folder that I can see. RStudio possible solution?
I currently seem to have libR.so in usr/lib and usr/local/lib/r/lib
Any suggestions on how to get out out of this.
Note I installed R-4.1.2 from a .tar.gz file which probably caused most of the problem.
after messing around for a while I realized that the command
tar zxvf R-4.1.2.tar.gz
was not executing so I reissued it and got the R-4.1.2 directory.
I submitted the rest of the commands and things seemed to be going well but
then I got two errorn
make[1]: Leaving directory '/usr/local/src/R-4.1.2/src'
make: *** [Makefile:95: install] Error 1
exit
tar (child): R-4.1.2.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
john@john:/usr/local/src$
Also, I just checked and there are binaries available for Ubuntu 21.10 on CRAN so you could simply follow the official instructions to add the cran repository instead of compiling yourself.
make[1]: Leaving directory '/usr/local/src/R-4.1.2/tests'
exit
tar (child): R-4.1.2.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
bash: cd: R-4.1.2: No such file or directory
bash: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
exit
tar (child): R-4.1.2.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Blast it I checked CRAN yesterday and completely missed the binaries available for Ubuntu 21.10 on CRAN.
OOPS, just did an instal with CRAN and still get the error. I wonder a reinstall of RStudio might help?
Weird. I tried loading RStudio from an icon and got the same error but oading from a command in the terminal seems to work fine. I remain totally confused but at leastn it seems I have a working R + RStudio.
It is likely that you have two versions of R installed, the one you compiled and the one you installed from the binary and RStudio is finding the former first.
Yes it seems so. It looks like I have a 4.0 version still installed but loading from the terminal seems to have sorted it out and R Studio is row finding 4.1.2.