在MacBookPro上安装Rcmdr软件包时出现TclTk库问题 [英] TclTk library issue while install Rcmdr package on MacBookPro
本文介绍了在MacBookPro上安装Rcmdr软件包时出现TclTk库问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在MacBook Pro上为R加载Rcmdr时出现以下错误:
I get the following ERROR while trying to load Rcmdr for R on my MacBook Pro:
> library("Rcmdr")
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
Error: package or namespace load failed for ‘Rcmdr’
这台机器上我还有其他与TclTk库有关的问题,但是当我发布有关安装 graphviz .
I have other problem on this machine related to the TclTk libraries, but I didn't get any help when I posted about troubles installing graphviz.
如果有人可以帮助我解决TclTk库问题,我将不胜感激.
If someone could help me fix the TclTk library issue I would really appreciate it.
谢谢.
推荐答案
感谢您的@ donal-fellows!
Thank your @donal-fellows !
解决方案是将符号链接放到R期望它们的库中:
The solutions was to put symlinks to the libs where R expected them:
brew remove tcl-tk
brew -v install tcl-tk --with-tk
ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
ln -s /usr/local/Cellar/tcl-tk/8.6.0/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
现在让我们希望它可以解决我的graphviz问题!
let us now hope that this fixes my graphviz issue!
这篇关于在MacBookPro上安装Rcmdr软件包时出现TclTk库问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文