[R] help with library(tcltk)
Dirk Eddelbuettel
edd at debian.org
Mon Dec 17 23:34:03 CET 2001
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list