I usually ran different statistical analysis in R with routines that use lapack like gam() lm(), etc but after several updates of libraries the following error appears:
library(mgcv)
This is mgcv 1.7-22. For overview type 'help("mgcv-package")'.
model <- with(chlaR,gam(ClorMAX ~ s(DegDay_NM)))
Error en eigen(St, symmetric = TRUE) :
lapack routines cannot be loaded
Además: Mensajes de aviso perdidos
In eigen(St, symmetric = TRUE) :
unable to load shared object '/usr/lib/R/modules//lapack.so':
/usr/lib/R/modules//lapack.so: undefined symbol: dpstrf_
The version information is:
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 15.2
year 2012
month 10
day 26
svn rev 61015
language R
I am using Ubuntu 12.04.1 LTS
UPDATE: I have checked the lapack.so library
leonardo@LyP:~$ ldd /usr/lib/R/modules/lapack.so
linux-gate.so.1 => (0x009ec000)
libR.so => /usr/lib/libR.so (0x0023a000)
liblapack.so.3gf => /usr/lib/liblapack.so.3gf (0x00ba3000)
libblas.so.3gf => /usr/lib/libblas.so.3gf (0x00186000)
...
checking the object
leonardo@LyP:~$ R CMD objdump -T /usr/lib/liblapack.so.3gf|grep dpstrf
00327f10 g DF .text 000024d4 Base dpstrf_
but
R CMD ldd /usr/lib/R/modules/lapack.so
linux-gate.so.1 => (0x009f5000)
libR.so => /usr/lib/R/lib/libR.so (0x00110000)
liblapack.so.3gf => /usr/lib/R/lib/liblapack.so.3gf (0x009f6000)
libblas.so.3gf => /usr/lib/R/lib/libblas.so.3gf (0x11eef000)
R links to another library and searching for the object:
leonardo@LyP:~$ R CMD objdump -T /usr/lib/R/lib/liblapack.so.3gf|grep dpstrf
gives empty
Any ideas?
I uninstall R using synaptics and marking all r-base and r-cran packages, reinstall it with
sudo apt-get install r-base r-base-dev r-base-html
and that's it, everything work fine.
Thanks to all the commenters!