cc1plus: error: unrecognized command line option "-std=gnu++11"

安装R包报错:

* installing *source* package ‘later’ ...

** package ‘later’ successfully unpacked and MD5 sums checked

** using staged installation

Running configure script

-latomic linker flag not needed.

** libs

g++ -std=gnu++11 -I"/share/work/biosoft/R/R-v3.6.1/lib64/R/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/share/work/biosoft/R/R-v3.6.1/lib64/R/library/Rcpp/include" -I"/share/work/biosoft/R/R-v3.6.1/lib64/R/library/BH/include" -I/share/work/biosoft/zlib/include -I/share/work/biosoft/bzip2/bzip2-v1.0.6/include/ -I/share/work/biosoft/xz/xz-v5.2.3/include -I/share/work/biosoft/pcre/pcre-v8.38/include -I/share/work/biosoft/curl/curl-v7.47.1/include  -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o

cc1plus: error: unrecognized command line option "-std=gnu++11"

make: *** [RcppExports.o] Error 1

ERROR: compilation failed for package ‘later’

* removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/later’

ERROR: dependency ‘later’ is not available for package ‘promises’

* removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/promises’

ERROR: dependency ‘promises’ is not available for package ‘DT’

* removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/DT’


请先 登录 后评论

1 个回答

omicsgene - 生物信息
擅长:重测序,遗传进化,转录组,GWAS

gcc版本太低:可升级GCC版本:6.4.0

请先 登录 后评论