r - lme4 无法在 Ubuntu(Precise Pangolin)上构建 : RcppEigen. h:没有这样的文件

标签 r ubuntu lme4

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

我的 session 信息:

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

有什么想法吗?

最佳答案

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

sudo apt-get install r-base-dev

关于r - lme4 无法在 Ubuntu(Precise Pangolin)上构建 : RcppEigen. h:没有这样的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19603785/

相关文章:

c++ - Netbeans:在 C++ 64 位 Ubuntu 上导航-> 使用 "Cannot Open Element"转到声明/定义损坏

ruby-on-rails - 在运行 Recipe 的其余部分之前使用 Chef 设置 DNS?

r - 如何使用 broom::tidy() 从 lme4::lmer() 创建的线性混合效应模型计算 p 值?

r - glmmTMB、事后测试和 glht

r - dplyr rowwise + replace_NA : replacing NAs in multiple columns with value from other column

r - 以编程方式将值发送到过滤器的 tidyeval 方法

r - R编程(气泡图可视化)

r - 在 R 中向 igraph 添加文本

linux - 有没有一种简单的方法可以在引导过程中向引导控制台写入内容?

lme4 - 如何处理公式中指定的随机效应项?