【问题标题】:Problems compiling rJava with RStudio on macOS Sierra 10.12.6在 macOS Sierra 10.12.6 上使用 RStudio 编译 rJava 时出现问题
【发布时间】:2017-10-04 21:38:33
【问题描述】:

我正在尝试使用以下说明将 rJava 包安装到 Rstudio 中:

https://github.com/MTFA/CohortEx/wiki/Run-rJava-with-RStudio-under-OSX-10.10,-10.11-(El-Capitan)-or-10.12-(Sierra)

但是,当我运行这个命令时:

unset JAVA_HOME R --quiet -e 'install.packages("rJava", type="source", repos="http://cran.us.r-project.org")'

我收到此错误:

clang: error: unsupported option '-fopenmp'

有什么解决方法或建议?

【问题讨论】:

    标签: r clang macos-sierra rjava


    【解决方案1】:

    看这里。很多取决于 R 版本。可能是需要重新编译rJava

    R 3.4, rJava, macOS and even more mess ;)

    R, Java, rJava and macOS adventures

    您需要支持 OpenMP 的编译器 - 因此,与开箱即用的版本相比,您需要使用不同的 clang 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-14
      • 1970-01-01
      相关资源
      最近更新 更多