安装lpsymphony时如何解决错误?

时间:2019-03-06 09:44:10

标签: r macos

我正在安装R软件包lpsymphony,但出现错误,请参见下文。

该如何解决?我需要安装openmp吗?我相信我已经有。

非常感谢!

桑德

BiocManager::install("lpsymphony")
Bioconductor version 3.8 (BiocManager 1.30.4), R 3.5.2 (2018-12-20)
Installing package(s) 'lpsymphony'
trying URL 'https://bioconductor.org/packages/3.8/bioc/src/contrib/lpsymphony_1.10.0.tar.gz'
Content type 'application/x-gzip' length 29147976 bytes (27.8 MB)
==================================================
downloaded 27.8 MB

* installing *source* package ‘lpsymphony’ ...
* Using the default compiler

[注意:由于太大,我无法提供完整的日志。]

I/private/var/folders/7r/ns6f04xj55j72y97pvwtwxj0000_2q/T/RtmpTxVnDz/R.INSTALL14e6021936202/lpsymphony/src/SYMPHONY/CoinUtils/src -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__DARWIN -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -I/usr/local/opt/openssl@1.1/include -w -g -O2 -DSYMPHONY_BUILD -fopenmp -c Master/master.c  -fno-common -DPIC -o libSym_la-master.o
clang: error: unsupported option '-fopenmp'
make[3]: *** [libSym_la-master.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [SYMPHONY.ts] Error 2
ERROR: compilation failed for package ‘lpsymphony’
* removing ‘/usr/local/lib/R/3.5/site-library/lpsymphony’


0 个答案:

没有答案