2

我在 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

有任何想法吗?

4

2 回答 2

1

是的......我刚刚修复它是这样的:

remove.packages("RcppEigen")
install.packages("lme4")

您也可能必须删除该文件夹

./R/x86_64-pc-linux-gnu-library/3.4/00LOCK-RcppEigen/
于 2017-12-28T19:08:05.117 回答
1

我在 ubuntu 14.04 下遇到了同样的问题,并通过安装r-base-dev包解决了它:

sudo apt-get install r-base-dev

于 2015-12-01T03:41:31.853 回答