我通常使用像 gam() lm() 等使用 lapack 的例程在 R 中运行不同的统计分析,但是在多次更新库后出现以下错误:
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_
版本信息为:
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
我正在使用 Ubuntu 12.04.1 LTS
更新:我检查了 lapack.so 库
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)
...
检查对象
leonardo@LyP:~$ R CMD objdump -T /usr/lib/liblapack.so.3gf|grep dpstrf
00327f10 g DF .text 000024d4 Base dpstrf_
但
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 链接到另一个库并搜索对象:
leonardo@LyP:~$ R CMD objdump -T /usr/lib/R/lib/liblapack.so.3gf|grep dpstrf
给空
有任何想法吗?