When trying to install RStudio Server Pro, the following error is encountered when checking sudo rstudio-server verify-installation
:
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
Why am I seeing this error and how can I overcome it?
Here are the steps taken to install R and RServer Pro:
R Installation:
yum update -y
yum install -y wget curl
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y epel/epel-release-latest-7.noarch.rpm
sed -i '70s/0/1/' /etc/yum.repos.d/redhat-rhui.repo
yum-builddep R -y
cd /usr/local/src
wget https://cran.r-project.org/src/base/R-3/R-3.6.1.tar.gz
tar -xzvf R-3.6.1.tar.gz
cd /usr/local/src/R-3.6.1
/usr/local/src/R-3.6.1/configure --prefix=/opt/R/$(cat VERSION) --enable-memory-profiling --enable-R-shlib --with-blas --with-cairo=yes --with-lapack --with-libpng=yes --with-x
yum install -y java-1.8.0-openjdk-devel openssl-devel
make
make
make install
/opt/R/3.6.1/bin/R --version
RStudio Server Pro Installation:
curl -O https://download2.rstudio.org/server/centos6/x86_64/rstudio-server-rhel-pro-1.2.5033-1-x86_64.rpm
yum install -y rstudio-server-rhel-pro-1.2.5033-1-x86_64.rpm
ln -sf /opt/R/3.6.1/bin/R /usr/bin/R
sudo yum install firewalld -y
systemctl start firewalld
sudo systemctl enable firewalld
firewall-cmd --zone=public --add-port=8787/tcp --permanent
firewall-cmd --reload
sudo rstudio-server start
sudo rstudio-server status