Skip to content
Prev 4413 / 15075 Next

Tcl/Tk Package issue on Leopard

Hi all,

We were having a similar problem with tcltk in trying to install the
snow package in 64bit R (details below).

We fixed the problem by creating a link from /usr/X11R6 to
/usr/local/X11R7 (ln -s /usr/X11R6 /usr/local/X11R7).  That was enough
to enable the libtk8.4 to load, but we're still not sure if it has
created a fully functional snow.


Jeff & Matt
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... Error in dyn.load(file, ...) :
  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/local/X11R7/lib/libX11.6.dylib
  Referenced from: /usr/local/lib/libtk8.4.dylib
  Reason: no suitable image found.  Did find:
	/usr/local/X11R7/lib/libX11.6.dylib: mach-o, but wrong architecture
Error: .onLoad failed in 'loadNamespace' for 'tcltk'

sessionInfo()
R version 2.6.2 alpha (2008-01-29 r44238)
i386-apple-darwin9.1.0

locale:
C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

On Tue, Feb 26, 2008 at 8:03 AM, Simon Urbanek
<simon.urbanek at r-project.org> wrote: