Skip to content

tcl/tk problem.

3 messages · Brian Ripley, James Platt

#
Hi People,

I am quite new to R and I also apologize if this has come up before:


Trying to load tcl/tk package I get this:

Error: package/namespace load failed for '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/local/lib/libtcl8.5.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/library/ 
tcltk/libs/x86_64/tcltk.so
  Reason: image not found

 > sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-apple-darwin9.8.0

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] TeachingDemos_2.6

loaded via a namespace (and not attached):
[1] tools_2.11.1


How do I resolve this?
Thanks for any help that can be provided,

James
#
On Mon, 19 Jul 2010, James Platt wrote:

            
Did you actually read http://cran.r-project.org/bin/macosx/ ?
This para

   This package only contains the R framework, 32-bit GUI (R.app) and
   64-bit GUI (R64.app). For Tcl/Tk libraries (needed if you want to use
   tcltk) and GNU Fortran (needed if you want to compile packages from
   sources that contain FORTRAN code) please see the tools directory.

applies to you.

  
    
#
Thanks, v.much,

James
On 19 Jul 2010, at 15:29, Prof Brian Ripley wrote: