Binary packages compiled with libopenblas

Hello,

I found an issue while using binary package (instead of source) of missing libopenblas. I am using Ubuntu Focal distribution and rstudio-server runs fine with BLAS (/usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 ) from sessionInfo.

After installing Binary package like "mgcv" the loading fails with below error.

library(mgcv)Loading required package: nlmeError: package or namespace load failed for ‘mgcv’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/mnt/code/.R/mgcv/libs/mgcv.so':
libopenblas.so.0: cannot open shared object file: No such file or directory

While package mgcv successfully installs and load when compiled from Source.
Why is RStudio IDE and binary package are compiled with different BLAS libraries?

Any help is much appreciated.

Thanks,
Theo.

You need to install the Ubuntu package that has libopenblas.so.0. Try installing the libopenblas0 package, AFAICT that will solve the issue. You can browse and search Ubuntu packages at https://packages.ubuntu.com.