我正在尝试安装R包ggplot2,虽然我得到的错误似乎与该特定包无关。我在Mac OSX 10.6.8上运行。错误消息位于此消息的底部。发生的事情是:
install.packages("ggplot2")
。输入后,打开一个X11窗口,说我应该更新到最新版本的X11。我点击并更新了X11。安装过程很顺利,最后是一个绿色的大号复选标记。install.packages("ggplot2")
,我收到了以下信息:> install.packages("ggplot2");
--- Please select a CRAN mirror for use in this session ---
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/X11/lib/libfreetype.6.dylib
Referenced from: /usr/local/lib/libtk8.6.dylib
Reason: Incompatible library version: libtk8.6.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
非常感谢您的帮助。感谢。