Skip to content

Installing the Rcmdr and tclk package

3 messages · Gerald.Jean@spgdag.ca, Martin Maechler, Brian Ripley

#
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:
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!

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

Thank you much,

G?rald Jean
Analyste-conseil (statistiques), Actuariat
t?lephone            : (418) 835-4900 poste (7639)
t?lecopieur          : (418) 835-6657
courrier ?lectronique: gerald.jean at spgdag.ca

"In God we trust all others must bring data"  W. Edwards Deming
#
Gerald> Hello R-users,
    Gerald> Version 1.8.1 on a 64-bit Solaris 5.8 OS

    Gerald> I am trying to instal the Rcmdr package for which the tclk package is
    Gerald> required.  Once both package installed I issued the command:

    >> library(tcltk)

    Gerald> and received the following error message

    Gerald> Error in firstlib(which.lib.loc, package) :
    Gerald> Tcl/Tk support is not available on this system
    Gerald> Error in library(tcltk) : .First.lib failed

    Gerald> Upon which I searched for Tcl and Tk on our system
    Gerald> and didn't find them, hence I requested the
    Gerald> admin. person to get them from the "sunfreeware"
    Gerald> site and install them.  The packages are now
    Gerald> installed under "/usr/local", same place than R is
    Gerald> installed.  If I open a shell and cd to this
    Gerald> directory and type "tcl" at the Unix prompt "tcl"
    Gerald> starts.  But if go back in R and try the
    Gerald> "library(tcltk)" command I receive the same error
    Gerald> message as above.

You need to re-install R.  Yours has "remembered" that tcl/tk is
not available.  In particular, do call  ./configure  again and probably
make will be sufficient (otherwise clean the whole installation
and configure; make; ...).

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
#
On Tue, 13 Jan 2004 Gerald.Jean at spgdag.ca wrote:

            
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 
Tcl/Tk.
Rebuild R, preferably after compiling Tcl/Tk from the sources yourself (it 
is probably simpler than build R).