R:包dplyr的编译失败

R:包dplyr的编译失败,r,dplyr,R,Dplyr,我正在尝试在RHEL的R版本3.1.1上安装dplyr: > sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UT

我正在尝试在RHEL的R版本3.1.1上安装dplyr:

    > sessionInfo()
    R version 3.1.1 (2014-07-10)
    Platform: x86_64-unknown-linux-gnu (64-bit)

    locale:
     [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
     [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
     [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
     [9] LC_ADDRESS=C               LC_TELEPHONE=C
    [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

    attached base packages:
    [1] stats     graphics  grDevices utils     datasets  methods   base
我在此处下载了dplyr的存档版本,该版本应兼容:

但是,当我尝试安装软件包时,会出现以下编译错误:

    xxxxx-2.desktop% R CMD INSTALL dplyr_0.3.tar.gz
    * installing to library â/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1â
    * installing *source* package âdplyrâ ...
    ** package âdplyrâ successfully unpacked and MD5 sums checked
    ** libs
    g++ -I/usr/share/R-3.1.1/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I/usr/local/include -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include" -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/BH/include"   -fpic  -g -O2  -c RcppExports.       cpp -o RcppExports.o
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In member function âvoid Rcpp::Date::update_tm()â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:108: warning: converting to âtime_tâ from âdoubleâ
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In function âRcpp::Date Rcpp::operator+(const Rcpp::Date&, int)â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:139: warning: converting to âtime_tâ from âdoubleâ
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinFactorStringVisitor::JoinFactorStringVisitor(const Rcpp::IntegerVector&, const Rcpp::CharacterVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:177: error: invalid conversion from âconst int*â to âint*â
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinStringFactorVisitor::JoinStringFactorVisitor(const Rcpp::CharacterVector&, const Rcpp::IntegerVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:238: error: invalid conversion from âconst int*â to âint*â
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package âdplyrâ

编辑:其他帖子建议这可能是编译器问题(),我有没有办法更新我的编译器?

我想你也尝试过其他版本,对吧?是的-我尝试过dplyr版本0.1、0.1.3、0.2和0.3,所有这些版本都有相同的问题。你的RHEL版本和编译器可能太旧了。什么是<代码> G+ +版本>代码> XXXX-2?桌面%g++——版本<代码> G+(GCC)4.1.2 20080704(Red Hat 4.1.2-54)<代码> >版权(C)2006免费软件基金会,Inc. /代码>我想你也尝试过其他版本,对吗?我已经尝试过DPLYR版本0.1,0.1.3,0.2和0.3,都有相同的问题。您的RHEL版本和编译器可能太旧。什么是<代码> G+ + -版本< /代码>?<代码> XXXXX -2。桌面%g++——版本< /COD> <代码> G+(GCC)4.1.2 20080704(红帽4.1.2-54)<代码> >代码>版权(C)2006免费软件基金会,<代码>
    xxxxx-2.desktop% R CMD INSTALL dplyr_0.3.tar.gz
    * installing to library â/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1â
    * installing *source* package âdplyrâ ...
    ** package âdplyrâ successfully unpacked and MD5 sums checked
    ** libs
    g++ -I/usr/share/R-3.1.1/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I/usr/local/include -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include" -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/BH/include"   -fpic  -g -O2  -c RcppExports.       cpp -o RcppExports.o
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In member function âvoid Rcpp::Date::update_tm()â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:108: warning: converting to âtime_tâ from âdoubleâ
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In function âRcpp::Date Rcpp::operator+(const Rcpp::Date&, int)â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:139: warning: converting to âtime_tâ from âdoubleâ
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinFactorStringVisitor::JoinFactorStringVisitor(const Rcpp::IntegerVector&, const Rcpp::CharacterVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:177: error: invalid conversion from âconst int*â to âint*â
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinStringFactorVisitor::JoinStringFactorVisitor(const Rcpp::CharacterVector&, const Rcpp::IntegerVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:238: error: invalid conversion from âconst int*â to âint*â
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package âdplyrâ