优胜美地 (OS X 10.10) 中的 Rcmdr 启动错误 [英] Rcmdr launch error in Yosemite (OS X 10.10)

查看:64
本文介绍了优胜美地 (OS X 10.10) 中的 Rcmdr 启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到 OS X 10.10 Yosemite 后,当我使用 library(Rcmdr) 在 R 中运行我的 Rcmdr 包时,我开始收到以下错误日志:

After upgrading to OS X 10.10 Yosemite I started to receive the following error log when running my Rcmdr package in R using 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.1/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /usr/X11/lib/libXft.2.dylib
  Referenced from: /usr/local/lib/libtk8.6.dylib
  Reason: image not found
Error: package or namespace load failed for 'Rcmdr'

你能帮我了解如何修复它吗?

Could you help me understand how to fix it?

这个 mac os x 故障排除 没有帮助.

推荐答案

在终端窗口中执行以下操作:

Execute the following in a terminal window:

locate libXft.2.dylib

或者从 R 控制台执行:

or do it from an R console:

system("locate libXft.2.dylib")

在我的 Yosemite 安装中,它位于 /opt/X11/lib/libXft.2.dylib.

On my Yosemite install it's in /opt/X11/lib/libXft.2.dylib.

如果您的设置类似,则:

If your setup is similar, then:

sudo ln -s /opt/X11 /usr/X11

应该有助于暂时解决这个问题,但我会继续寻找 Yosemite R 包(因为它将容纳 Apple 对文件系统结构所做的所有更改).

should help fix this temporarily, but I'd keep looking for a Yosemite R package (since that will accommodate all the changes Apple made to the filesystem structure).

注意:在我的工作 Mac(小牛队)上,这个符号链接已经存在.

Of note: On my work Mac (Mavericks) this symlink is already there.

这篇关于优胜美地 (OS X 10.10) 中的 Rcmdr 启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆