安装utf8软件包时出错

时间:2018-01-08 10:35:38

标签: r

我正在尝试在笔记本电脑上安装'utf8'软件包(版本1.1.3),但是我收到了一个错误消息。我使用的是R 3.4.3,我的操作系统是macOS Sierra 10.12.6。

Error: package or namespace load failed for ‘utf8’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8/libs/utf8.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8/libs/utf8.so, 6): Symbol not found: _utf8lite_graph_measure
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8/libs/utf8.so
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8/libs/utf8.so
Errore: loading failed
Esecuzione interrotta
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/utf8’

1 个答案:

答案 0 :(得分:0)

我的~/.R/Makevars文件似乎已损坏。我在文件中有这一行:

PKG_LIBS = -fopenmp -lgomp

而不是

LDLIBS = -fopenmp -lgomp