简体   繁体   English

在 rstudio 中安装 rpf 包时出现“致命错误:特征/核心:没有这样的文件或目录”

[英]"fatal error: Eigen/Core: No such file or directory" when installing rpf package in rstudio

I need the rpf package as a dependency of the MBESS package.我需要 rpf 包作为 MBESS 包的依赖项。 During the installation process rstudio does the following:在安装过程中 rstudio 执行以下操作:

    Installing package into ‘/home/gata/R/x86_64-pc-linux-gnu-library/3.4’
    (as ‘lib’ is unspecified)
    versuche URL 'https://cloud.r-project.org/src/contrib/rpf_0.59.tar.gz'
    Content type 'application/x-gzip' length 347458 bytes (339 KB)
    ==================================================
    downloaded 339 KB

    * installing *source* package ‘rpf’ ...
    ** Paket ‘rpf’ erfolgreich entpackt und MD5 Summen überprüft
    ** libs
    g++  -I/usr/share/R/include -DNDEBUG  -I"/home/gata/R/x86_64-pc-linux-        gnu-library/3.4/RcppEigen/include"   -fopenmp    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c ba81quad.cpp -o ba81quad.o
    In file included from ba81quad.cpp:18:0:
    rpf.h:25:10: fatal error: Eigen/Core: Datei oder Verzeichnis nicht gefunden
    #include "Eigen/Core"
      ^~~~~~~~~~~~
    compilation terminated.
    /usr/lib/R/etc/Makeconf:168: recipe for target 'ba81quad.o' failed
    make: *** [ba81quad.o] Error 1
    ERROR: compilation failed for package ‘rpf’
    * removing ‘/home/gata/R/x86_64-pc-linux-gnu-library/3.4/rpf’
    Warning in install.packages :
      installation of package ‘rpf’ had non-zero exit status

    The downloaded source packages are in
        ‘/tmp/RtmpPz090Z/downloaded_packages’

I researched the Eigen library, but I have no idea how I could fix this in the installation process.我研究了 Eigen 库,但我不知道如何在安装过程中解决这个问题。

Is there a suggestion how to solve this issue?有没有建议如何解决这个问题?

Information about my OS and R version:关于我的操作系统和 R 版本的信息:

  • R version 3.4.4 (2018-03-15) R 版本 3.4.4 (2018-03-15)
  • Platform: x86_64-pc-linux-gnu (64-bit)平台:x86_64-pc-linux-gnu(64 位)
  • Running under: Ubuntu 18.04.1 LTS运行于:Ubuntu 18.04.1 LTS

Just solved it by simply installing RcppEigen package ( https://cran.r-project.org/web/packages/RcppEigen/index.html ).只需安装 RcppEigen 包( https://cran.r-project.org/web/packages/RcppEigen/index.html )即可解决它。 Still no clue why this wasn't supposed as a dependency.仍然不知道为什么这不应该作为依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM