我有一个要用于运行某些rstan模型的Linux服务器。我正在使用brms包在R中编写它们。
到目前为止,我已经能够安装软件包而没有任何重大问题。 但是当我运行模型时,出现以下错误消息:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from /usr/local/lib/R/site-library/RcppEigen/include/Eigen/Core:392:0,
from /usr/local/lib/R/site-library/RcppEigen/include/Eigen/Dense:1,
from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4,
from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4,
from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/rev/core.hpp:5,
from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/rev/mat.hpp:4,
from /usr/local/lib/R/site-library/StanHeaders/include/stan/math.hpp:4,
from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/model/model_header.hpp:4,
from file22814fd3eb3a.cpp:8:
/usr/local/lib/R/site-library/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:60:39: warning: ig
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command '/usr/lib/R/bin/R CMD SHLIB file22814fd3eb3a.cpp 2> file22814fd3eb3a.cpp.err.txt' had status 1
Error in sink(type = "output") : invalid connection
我怀疑某些软件包的安装有问题,但是我不确定该怎么办。
服务器使用的是Ubuntu Server版本18.04 LTS(仿生)64位,并且我具有最新的g ++编译器。 规格是 记忆体大小:2048MB 磁盘1:20GB
另外,也许不相关,当我安装一些软件包(例如httpuv)时,会收到很多这样的警告:
In file included from /usr/local/lib/R/site-library/BH/include/boost/shared_ptr.hpp:17:0,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_month.hpp:14,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_ymd.hpp:16,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_calendar.hpp:17,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/gregorian_types.hpp:19,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/posix_time/posix_time_config.hpp:18,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/posix_time/posix_time_system.hpp:13,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/posix_time/ptime.hpp:12,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/posix_time/posix_time.hpp:15,
from /usr/local/lib/R/site-library/BH/include/boost/date_time/local_time/local_time.hpp:11,
from /usr/local/lib/R/site-library/BH/include/boost/date_time.hpp:15,
from utils.h:13,
from fs.cpp:2:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
也许相关吗?
有人可以在这里看到问题吗?