Last active
April 3, 2019 18:40
-
-
Save jsaraviadrago/053b9045418474d26cb7b63fcbb42680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: this needs to be run in terminal | |
tar xf R-3.5.3.tar.gz # Unpack the R version you need to put in Ubuntu | |
cd R-3.5.3 # Set the directory | |
./configure # Assign it to the folder in computer | |
apt-get install gfortran libreadline-dev bzip2-dev liblzma-dev libcurl4-gnutls-dev | |
which R # it is usefull to know in which folder R uis running. | |
sudo make install # Sometimes there is a problem with R studio. | |
make check # Check if it is working properly. | |
# it is possible that when you open Rstudio you'll have the following message. | |
# R shared library (/usr/lib64/R/lib/libR.so) not found. If this | |
# is a custom build of R, was it built with the --enable-R-shlib option? | |
# In that case you need to do the following in terminal | |
make clean | |
./configure --enable-R-shlib=yes | |
make | |
sudo updatedb | |
locate libR.so # Just to check if it is right | |
# With this you are good to go! | |
# Note | |
# You can also try to do a soft link like this | |
# ln -s /home/asn/R/lib/R/lib/libR.so /usr/local/lib/R/lib/libR.so | |
# But this didnt work for me | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment