我在Ubuntu(Precise Pengolin)下安装lme4时遇到问题。我收到以下错误消息:
** help
*** installing help indices
** building package indices
Loading required package: Matrix
** installing vignettes
‘Comparisons.Rnw’
‘Design-issues.Rnw’
‘Intro2Matrix.Rnw’
‘Introduction.Rnw’
‘sparseModels.Rnw’
** testing if installed package can be loaded
* DONE (Matrix)
* installing *source* package ‘lme4’ ...
** Paket ‘lme4’ erfolgreich entpackt und MD5 Summen überprüft
** libs
g++ -I/usr/share/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -DNDEBUG -DEIGEN_DONT_VECTORIZE -fpic -O3 -pipe -g -c external.cpp -o external.o
In file included from external.cpp:7:0:
predModule.h:12:23: fatal error: RcppEigen.h: No such file or directory
compilation terminated.
make: *** [external.o] Error 1
ERROR: compilation failed for package ‘lme4’
我的会话信息:
sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.0.1
有什么想法吗?
答案 0 :(得分:1)
是的......我刚刚解决了这个问题:
remove.packages("RcppEigen")
install.packages("lme4")
您可能还必须删除文件夹
./R/x86_64-pc-linux-gnu-library/3.4/00LOCK-RcppEigen/
答案 1 :(得分:0)
我在ubuntu 14.04下遇到了同样的问题,并通过安装 r-base-dev 包解决了这个问题:
sudo apt-get install r-base-dev