[R] Installing the Rcmdr and tclk package

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 14 14:17:43 CET 2004

On Tue, 13 Jan 2004 Gerald.Jean at spgdag.ca wrote:

> Hello R-users,
> Version 1.8.1 on a 64-bit Solaris 5.8 OS
> I am trying to instal the Rcmdr package for which the tclk package is
> required.  Once both package installed I issued the command:
> > library(tcltk)
> and received the following error message
> Error in firstlib(which.lib.loc, package) :
>       Tcl/Tk support is not available on this system
> Error in library(tcltk) : .First.lib failed
> Upon which I searched for Tcl and Tk on our system and didn't find them,
> hence I requested the admin. person to get them from the "sunfreeware" site
> and install them.  The packages are now installed under "/usr/local", same
> place than R is installed.  If I open a shell and cd to this directory and
> type "tcl" at the Unix prompt "tcl" starts.  But if go back in R and try
> the "library(tcltk)" command I receive the same error message as above.
> I searched the "r-projec", the tcltk documentation and the mail archives in
> the hope of finding out if environment variables needed to be set or if I
> had missed something else, but I had no luck!

Tcl/Tk has to be available when you build R, not just at run time.

I am pretty sure that for a 64-bit build of R you need a 64-bit build of 

> Anyone could point me in the right direction as what needs to be done so
> Tcl and Tk become visible to R?

Rebuild R, preferably after compiling Tcl/Tk from the sources yourself (it 
is probably simpler than build R).

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list