[R-SIG-Mac] Cannot load tcl/tk (tcltk package installed)
Simon Urbanek
simon.urbanek at r-project.org
Thu Aug 30 23:19:22 CEST 2012
On Aug 30, 2012, at 4:20 PM, Anca Chereches <anca.che at gmail.com> wrote:
> Hello,
>
> I'm getting the following error message when trying to load tcltk:
>
> "Loading Tcl/Tk interface ... 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/2.15/Resources/library/tcltk/libs/i386/tcltk.so':
> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/tcltk/libs/i386/tcltk.so, 10): Library not loaded: /usr/X11R6/lib/libX11.6.dylib
> Referenced from: /usr/local/lib/libtk8.5.dylib
> Reason: image not found
> Error: package/namespace load failed for ‘tcltk’"
>
> I've installed tcltk-8.5.5 from the dmg on cran and as far as I can tell installation was successful. I have tk8.5 and tcl8.5 in /usr/local/lib. X11 is also installed and working.
>
> I'm running:
> R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
> R.app GUI 1.52 (6188) i386-apple-darwin9.8.0
> On: Mac OS X 10.6.8
>
> I don't really know how to go about figuring out the problem. I'd be grateful for any hints or suggestions of help pages and so on. I've googled this, but most problems seem to be related to people not having installed tcltk, which I have.
>
Please post the output of
file /usr/X11R6/lib/libX11.6.dylib
you should see something like
$ file /usr/X11R6/lib/libX11.6.dylib
/usr/X11R6/lib/libX11.6.dylib: Mach-O universal binary with 3 architectures
/usr/X11R6/lib/libX11.6.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
/usr/X11R6/lib/libX11.6.dylib (for architecture i386): Mach-O dynamically linked shared library i386
/usr/X11R6/lib/libX11.6.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
if your X11 is installed properly.
Thanks,
Simon
More information about the R-SIG-Mac
mailing list