本文介绍了在macOS Sierra 10.12.1上安装rJava:链接器错误licuuc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在R-Studio中安装rJava但错误

I am trying to install rJava within R-Studio but the error

ld: library not found for -licuuc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libjri.jnilib] Error 1
make[1]: *** [src/JRI.jar] Error 2
make: *** [jri] Error 2
ERROR: compilation failed for package ‘rJava’
* removing ‘/Users/iMacLinda/Library/R/3.3/library/rJava’
Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

R

如何修复此链接器错误?

推荐答案

Anaconda有一个解决方案其中R安装了 brew cask install r-app 并且必须在没有forenmp标志的情况下重新编译gcc。

There is also a solution for this with Homebrew here where R is installed with brew cask install r-app and gcc had to be recompiled without a forenmp flag.

这篇关于在macOS Sierra 10.12.1上安装rJava:链接器错误licuuc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 20:19