[R] library(tcltk) fails

Sven Garbade Sven.Garbade at med.uni-heidelberg.de
Tue Nov 6 15:22:11 CET 2007


On Tue, 2007-11-06 at 08:03 -0600, Dirk Eddelbuettel wrote: 
> On Tue, Nov 06, 2007 at 01:08:40PM +0100, Sven Garbade wrote:
> > 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" 
> >                               user 
> >                              "sfg" 
> > 
> > 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?
> 
> You didn't tell us your operating system -- but a few days ago on the
> r-sig-debian list we looked at the same issue and found that the tk8.4
> package from Debian unstable fixes this.

Operating system is Debian lenny/sid:
$ uname -a
Linux meta 2.6.22 #2 Mon Oct 22 09:58:25 CEST 2007 i686 GNU/Linux

I now "fixed" this with a symbolic link from /usr/local/lib/tcltk/ (were
R (?) looks for the Tcl/TK libs) to /usr/lib/ were the Tcl/Tk libs are.
I wait until tk8.4 package from Debian unstable is in testing, because
sometimes unstable is really unstable...

Thanks, Sven



More information about the R-help mailing list