[R] Ubuntu tcl/tk problems

Dirk Eddelbuettel edd at debian.org
Mon Nov 30 17:14:06 CET 2009


On 30 November 2009 at 15:12, Peter Dalgaard wrote:
| stephen sefick wrote:
| > Error in firstlib(which.lib.loc, package) :
| >   Tcl/Tk support is not available on this system
| > Error : package 'tcltk' could not be loaded
| > 
| > Ubuntu 9.10
| > I have both the 8.5 and 8.4 tcl and tk regular and dev libraries
| > installed.  I need both of these because some of my GIS software
| > requires the 8.4 libraries.  Should I remove the 8.5 libraries, or ...
| > 
| > All help is greatly appreciated!

a) This is a very much a FAQ. Learn to use the archives, and Google.

b) You need the -dev packages for compiling. You probably only have the 
   run-time packages for tcl and tk 8.4 and 8.5. Install the matching -dev
   packages.

c) You seem to have recompiled R yourself. Why? CRAN has current versions
   of R 2.10.0 for Ubuntu at cran.r-project.org/bin/linux/ubuntu -- why not
   use it?

d) This is a question for r-sig-debian.

| > regards,
| > 
| 
| Is this "stock R" or one you compiled yourself? What does capabilities()
| say about tcltk?
| 
| I don't use Ubuntu, and it is a bit hard to know what kinds of messes
| distibution maintainers might cook up, but if capabilities() claims that

e) Few for Debian and Ubuntu. And the ones we learn about, we fix. The
   shipped version of R has:

   R> capabilities()
       jpeg      png     tiff    tcltk      X11     aqua http/ftp
       TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE
    sockets   libxml     fifo   cledit    iconv      NLS  profmem
       TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE
      cairo
       TRUE
   R>

   To use Peter's colourful language: This appears to be a something the
   user 'cooked up' himself.

Dirk

| tcltk should work, then I might take a look at
| 
| ldd /usr/lib64/R/library/tcltk/libs/tcltk.so
| 
| or whatever the counterpart is on your system. And also check that
| you're not accidentally setting things like LD_LIBRARY_PATH to the wrong
| thing in your shell environment.
| -- 
|    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
|   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
|  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
| ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907
| 
| ______________________________________________
| R-help at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-help
| PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
| and provide commented, minimal, self-contained, reproducible code.

-- 
Three out of two people have difficulties with fractions.




More information about the R-help mailing list