R: lme4/ Matrix not finding “libRlapack.so”
I had a problem in R when trying to load the package lme4 on Xubuntu Intrepid:
> library(lme4) Loading required package: Matrix Loading required package: lattice Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/usr/local/lib/R/site-library/Matrix/libs/Matrix.so': libRlapack.so: cannot open shared object file: No such file or directory Error: package 'Matrix' could not be loaded
Found solution here, which is as follows:
sudo ln -s /usr/lib/R/modules/lapack.so /usr/lib/libRlapack.so