[R] library(tcltk) fails

Sven Garbade Sven.Garbade at med.uni-heidelberg.de
Tue Nov 6 13:08:40 CET 2007

Dear list,

I cannot load the tcltk library:

> library(tcltk)
Loading Tcl/Tk interface ... Error in fun(...) : 
  Can't find a usable tk.tcl in the following directories: 
    /usr/share/tcltk/tcl8.4/tk8.4 ./lib/tk8.4 /usr/local/lib/tcltk/tk8.4 /usr/local/share/tcltk/tk8.4 /usr/lib/tcltk/tk8.4 /usr/share/tcltk/tk8.4 ./library ./tk8.4.16/library

This probably means that tk wasn't installed properly.

Error : .onLoad failed in 'loadNamespace' for 'tcltk'
Error: package/namespace load failed for 'tcltk'

Cannot remember that I uninstalled anything related to Tcl/Tk, and I can
start Tcl/TK application I wrote. Some system information:

> Sys.info()
                            sysname                            release 
                           "Linux"                           "2.6.22" 
                           version                           nodename 
"#2 Mon Oct 22 09:58:25 CEST 2007"                             "meta" 
                           machine                              login 
                            "i686"                          "unknown" 

on Debian testing, Tcl/Tk:

$ ldconfig -p | grep libtk
	libtk8.5.so.0 (libc6) => /usr/lib/libtk8.5.so.0
        libtk8.4.so.0 (libc6) => /usr/lib/libtk8.4.so.0
        libtk8.4.so (libc6) => /usr/lib/libtk8.4.so

$ ldconfig -p | grep libtcl
        libtcl8.5.so.0 (libc6) => /usr/lib/libtcl8.5.so.0
        libtcl8.4.so.0 (libc6) => /usr/lib/libtcl8.4.so.0
        libtcl8.4.so (libc6) => /usr/lib/libtcl8.4.so

Anything wrong with my Tcl/Tk installation?

Thanks, Sven

More information about the R-help mailing list