Hi All, I have tried several times to run this library and I get the following message:> library(tcltk)Error in firstlib(which.lib.loc, package) : invalid command name "tcl_findLibrary" Error in library(tcltk) : .First.lib failed>I have checked either the tcl and tk libraries and they are correctly installed (/usr/lib/). I have other program (Grass) that make use of them and it works correctly. System: Intel Pentium MMX Linux Mandrake 8.0 Tcl/Tk 8.3 Thanks in advance, Antonio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, Dec 17, 2001 at 11:03:38PM +0100, antonio wrote:> I have tried several times to run this library and I get the following > message: > > > library(tcltk) > Error in firstlib(which.lib.loc, package) : > invalid command name "tcl_findLibrary" > Error in library(tcltk) : > .First.lib failed > > > > I have checked either the tcl and tk libraries and they are correctly > installed (/usr/lib/). I have other program (Grass) that make use of them and > it works correctly.That alone is not meaningful. More important is whether tcl/tk was found when R was compiled. You can look at> capabilities("tcltk")if you R binary has been built with tcl/tk support. Having said that, the snippet above suggest that tcltk was compiled in, but might have broken later. Try to locate the tcltk.so [ my system has it at /usr/lib/R/library/tcltk/libs/tcltk.so as R lives below /usr/lib/R here ] and run ldd on it as in ldd /usr/lib/R/library/tcltk/libs/tcltk.so You need to see the libtcl and libtk libraries resolved for tcltk to work. Hope this helps, Dirk -- Good judgment comes from experience; experience comes from bad judgment. -- F. Brooks -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
antonio <rod.chav at hsoft.es> writes:> Hi All, > > I have tried several times to run this library and I get the following > message: > > > library(tcltk) > Error in firstlib(which.lib.loc, package) : > invalid command name "tcl_findLibrary" > Error in library(tcltk) : > .First.lib failed > > > > I have checked either the tcl and tk libraries and they are correctly > installed (/usr/lib/). I have other program (Grass) that make use of them and > it works correctly. > > System: > > Intel Pentium MMX > Linux Mandrake 8.0 > Tcl/Tk 8.3Which version of R, and did you compile it yourself? If so, did tcl/tk support get enabled? I get a sense of deja vu from this, so you might want to check the archives. Nothing in R is messing with tcl_findLibrary but that command is generally known to Tcl interpreters, including the one that R starts:> library(tcltk) > .Tcl("tcl_findLibrary")Error in .Tcl("tcl_findLibrary") : [tcl] no value given for parameter "basename" to "tcl_findLibrary". It appears that it is generally defined in /usr/lib/tcl8.3/auto.tcl. Your error comes from the Tcl interpreter, so it seems that you're loading the library OK, but then initialization fails somehow. Might it be that you have multiple versions installed or that the LD_LIBRARY_PATH got somehow messed up? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._