rstudio / r-builds

an opinionated environment for compiling R
GNU General Public License v3.0
99 stars 19 forks source link

Add dependency to SUSE RPM #193

Open heath-posit opened 11 months ago

heath-posit commented 11 months ago

When installing R to a SUSE cloud image, I received the following error:

localhost:~ # /opt/R/4.2.3/bin/R --version /opt/R/4.2.3/lib/R/bin/exec/R: error while loading shared libraries: libRblas.so: cannot open shared object file: No such file or directory

The following fixes this issue: zypper install -y openblas-devel

Please add the dependency above to RPM to avoid this error.

RPM used:

https://cdn.rstudio.com/r/opensuse-154/pkgs/R-4.2.3-1-1.x86_64.rpm

SUSE image used:

https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.3/images/openSUSE-Leap-15.3.x86_64-1.0.1-NoCloud-Build2.466.qcow2

OS Info:

opensuse-15-2:~ # more /etc/os-release NAME="openSUSE Leap" VERSION="15.3" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.3" PRETTY_NAME="openSUSE Leap 15.3" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.3" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/"

glin commented 11 months ago

Can you try the openSUSE 15.3 RPM? We used openblas-devel (serial OpenBLAS) as the dependency for the openSUSE 15.3 RPMs, then switched to libopenblas_pthreads-devel (threaded OpenBLAS) starting with SUSE 15.4. I don't remember why the 15.3 RPM was using the serial version, but I retested it on a fresh openSUSE 15.3 image and it worked fine.

$ curl -LO https://cdn.rstudio.com/r/opensuse-153/pkgs/R-4.2.3-1-1.x86_64.rpm
$ rpm -qpR R-4.2.3-1-1.x86_64.rpm 
...
openblas-devel

FYI we removed openSUSE 15.3 support a while back because it went EOL, but any existing RPMs should still be downloadable under /opensuse-153/.