Installing R from source
- Inicie sesión o regístrese para enviar comentarios
Hi all,
Has anyone tried to install R (https://cran.r-project.org/) from source?
I've followed the following:
# tar -xzvf R-3.3.2.tar.gz
# ./configure --prefix=/home/asn/R --enable-R-shlib=yes --with-readline=no --with-x=no
# make
# make install
Everything ok. However, when I install and run rstudio (https://www.rstudio.com), it says that:
"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?"
I've tried to make some soft link to the path from above with a path with the libR.so file and it does not work.
Has anyone experienced anything similar?
thank you!!
Albert
I think it's that home prefix that means the file is elsewhere. How to fix that smoothly I don't know. Maybe you can specify somewhere in rstudio that you used such a home prefix for R. Or a dirty and dangerous solution could be copying the file over. Note that this could lead to problems because now this file would never get updated for one thing...
Does this help? https://support.rstudio.com/hc/en-us/community/posts/200661703-R-shared-library-usr-local-lib-R-lib-libR-so-not-found-UBUNTU-11-
Solved!!
Thank you for the help! I already saw this link but I wrote badly the instruction to make the soft link. The correct one is:
# ln -s /home/asn/R/lib/R/lib/libR.so /usr/local/lib/R/lib/libR.so
Now it works.
Thank you!
Cheers
- Inicie sesión o regístrese para enviar comentarios