install.packages("rstan") 安装失败
试开URL’https://mirrors.e-ducation.cn/CRAN/src/contrib/rstan_2.21.2.tar.gz'
Content type 'application/x-gzip' length 1152008 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
* installing *source* package ‘rstan’ ...
** 成功将‘rstan’程序包解包并MD5和检查
** using staged installation
** libs
Error in .shlib_internal(args) :
C++14 standard requested but CXX14 is not defined
* removing ‘/usr/lib64/R/library/rstan’
下载的程序包在
‘/tmp/RtmpHaZKZK/downloaded_packages’里
更新'.Library'里的HTML程序包列表
Making 'packages.html' ... 做完了。
Warning message:
In install.packages("rstan") : 安装程序包‘rstan’时退出狀態的值不是0
=====================================
安装 步骤如下:
安装新版本gcc (Install gcc gcc-9.1.0)
centos7的预装gcc版本为4.8.5,刚好不满足rstan的最低要求
标签:gcc,make,centos7,build,rstan,安装,9.1,software From: https://blog.51cto.com/emanlee/7771951