Final update: The problem of R hanging when I tried to attach tcltk was fixed by reinstalling R2.11.1. Thanks, Simon, for your diagnosis of my X11 problem.
MK On Jun 12, 2010, at 3:41 PM, Michael Kubovy wrote: > Thanks Simon, > > I reinstalled X11 from the Snow Leopard disk: > ************************** > [MK-MacPro:~] mk% ls -l /usr/X11R6/lib/libX11.6.dylib > -rwxr-xr-x 1 root wheel 3578368 Jul 6 2009 /usr/X11R6/lib/libX11.6.dylib > [MK-MacPro:~] mk% 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 > ************************** >> sessionInfo() > R version 2.11.1 (2010-05-31) > x86_64-apple-darwin9.8.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] grid_2.11.1 lattice_0.18-8 latticeExtra_0.6-11 > ************************** > But when I issue > ************************** >> library(tcltk) > ************************** > R hangs. > > Michael > > On Jun 12, 2010, at 11:22 AM, Simon Urbanek wrote: > >> >> On Jun 12, 2010, at 8:00 AM, Michael Kubovy wrote: >> >>> No. As I indicated below, X11 is running. >>> >> >> But which X11? Not Apple's since the message says it's not present: >> >> >>> Library not loaded: /usr/X11R6/lib/libX11.6.dylib >>> Referenced from: /usr/local/lib/libtk8.5.dylib >>> Reason: image not found >> >> Depending on your OS version you should see something like: >> >> Fino:~$ ls -l /usr/X11R6/lib/libX11.6.dylib >> -rwxr-xr-x 1 root wheel 3578368 Feb 11 03:09 /usr/X11R6/lib/libX11.6.dylib >> Fino:~$ 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 >> >> Cheers, >> S >> >> >>> >>> On Jun 11, 2010, at 3:49 PM, Simon Urbanek wrote: >>> >>>> Ooops - my apologies - I missed that the output actually included some >>>> comment inside - it looked like a plain R output. It seems you're missing >>>> X11 - please read the FAQ on how to install it. >>>> Cheers, >>>> Simon >>>> >>>> >>>> On Jun 11, 2010, at 3:45 PM, Simon Urbanek wrote: >>>> >>>>> Thanks for sharing with us that you forgot to install Tcl/Tk - not that >>>>> we really need to know that. Did you mean to ask some question perhaps? >>>>> Cheers, >>>>> Simon >>>>> >>>>> >>>>> On Jun 11, 2010, at 2:21 PM, Michael Kubovy wrote: >>>>> >>>>>>> library(tcltk) >>>>>> Loading Tcl/Tk interface ... Error : .onLoad failed in loadNamespace() >>>>>> for 'tcltk', details: >>>>>> call: dyn.load(file, DLLpath = DLLpath, ...) >>>>>> error: unable to load shared library >>>>>> '/Library/Frameworks/R.framework/Resources/library/tcltk/libs/x86_64/tcltk.so': >>>>>> dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/x86_64/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 had installed tcltk-8.5.5-x11.dmg >>>>>> X11 is running >>>>>> >>>>>>> sessionInfo() >>>>>> R version 2.11.1 (2010-05-31) >>>>>> x86_64-apple-darwin9.8.0 >>>>>> >>>>>> locale: >>>>>> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 >>>>>> >>>>>> attached base packages: >>>>>> [1] stats graphics grDevices utils datasets methods base >>>>>> >>>>>> loaded via a namespace (and not attached): >>>>>> [1] grid_2.11.1 lattice_0.18-8 latticeExtra_0.6-11 >>>>>> >>>>>> >>>>>> [[alternative HTML version deleted]] >>>>>> >>>>>> _______________________________________________ >>>>>> R-SIG-Mac mailing list >>>>>> R-SIG-Mac@stat.math.ethz.ch >>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >>>>>> >>>>>> >>>>> >>>> >>> >>> >> > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-mac _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac