有没有办法解决make rstan的错误

有没有办法解决make rstan的错误,r,compiler-errors,rstan,R,Compiler Errors,Rstan,我使用的是CentOS6.8,R版本是3.4.0,gcc版本是4.47,当我使用R CMD install rstan_2.14.1.tar.gz或更高版本的离线安装时,错误是:生成***[chains.o]错误1,什么是chains.o以及如何解决它。帮助 /opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:In function`void boost::throw_exception(const E&)`: /opt/R

我使用的是
CentOS6.8
,R版本是
3.4.0
,gcc版本是
4.47
,当我使用R CMD install rstan_2.14.1.tar.gz或更高版本的离线安装时,错误是:
生成***[chains.o]错误1
,什么是chains.o以及如何解决它。帮助

/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:In function`void boost::throw_exception(const E&)`:
/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:70:error`enable_ both:` is not a member of `boost::exception_detail`
In file included from /opt/R-3.4.0/library/BH/include/boost/random/detail/integer_log2.hpp:19,
from /opt/R-3.4.0/library/BH/include/boost/random/detail/large_arithmetic.hpp:19,
from /opt/R-3.4.0/library/BH/include/boost/random/detail/const_mod.hpp:23,
from /opt/R-3.4.0/library/BH/include/boost/random/linear_congruential.hpp:30,
from /opt/R-3.4.0/library/BH/include/boost/random/additive_combine.hpp:27,
from chains.cpp:29:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:At global scope:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:7:note:#pragma message :This header is deprecated .Use <boost/integer/integer_log2.hpp> instead.
make: *** [chains.o] Error 1
Error:compilation failed for package `rstan`
/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:在函数“void boost::throw_exception(const E&)”中:
/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:70:error`enable_uboth:`不是`boost::exception_detail'的成员`
在/opt/R-3.4.0/library/BH/include/boost/random/detail/integer_log2.hpp:19中包含的文件中,
来自/opt/R-3.4.0/library/BH/include/boost/random/detail/large_算术。hpp:19,
从/opt/R-3.4.0/library/BH/include/boost/random/detail/const_mod.hpp:23,
从/opt/R-3.4.0/library/BH/include/boost/random/linear_同余。hpp:30,
从/opt/R-3.4.0/library/BH/include/boost/random/additive_combine.hpp:27,
来自连锁店。cpp:29:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:在全局范围内:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:7:注意:#pragma消息:此标头已弃用。请改用。
make:**[chains.o]错误1
错误:包`rstan的编译失败`

我在Azure上遇到了同样的错误,虚拟机
Standard_F2s_v2
、Ubuntu
19.04
R3.4.3
g++(Ubuntu 5.4.0-6ubuntu1~16.04.11)5.4.0 20160609
,因为我使用的是

devtools::install\u deps(dependencies=TRUE)
我的
描述
有:

Imports:
    rstan (>= 2.18.2),
解决方案是单独安装软件包,而不安装以下版本:

.libPaths(c(“~/R/x86_64-pc-linux-gnu-library/3.4”,.libPaths()))
期权(回购=结构(c(CRAN=)https://cran.r-project.org")))

软件包在这个单一的、没有灵感的错误消息之前是否有任何错误、警告或控制台消息?我已经添加了更多的错误消息,谢谢使用
g++
4.47或任何小于4.9的东西都不能与rstan 2.18.x或更高版本一起使用。而且,无论您试图编译的rstan的哪个版本似乎都不适用于BH 1.69.0。我在Azure上使用虚拟机标准_F2s_v2、Ubuntu 19.04、R3.4.3和
g++(Ubuntu 5.4.0-6ubuntu1~16.04.11)5.4.0 20160609时也遇到了同样的错误。