[R] Problem with TLC/TK on Ubuntu

Roland Rau roland.rproject at gmail.com
Fri Jul 18 16:25:27 CEST 2008

Hi Davide,

did you check the R Installation and Administration Manual?
In Section A.2.1 you will find some more information.

Make sure that you have the 'dev' packages installed of tcl8.x and tk8.x.

If you don't know where 'tclConfig.sh' and 'tkConfig.sh' are located, 
just find them:
locate tclConfig.sh
locate tkConfig.sh

now you will know the path to those two files.
All you need to do now is (in the correct directory of course):
./configure --with-tcl-config=/my/path/to/tclConfig.sh

I hope this helps,

Davide Massidda wrote:
> Dear all,
> I have installed R on Linux/Ubuntu 8.04. When I try to load the tcltk
> package, I get the response:
>> library(tcltk)
> Error in firstlib(which.lib.loc, package) :
>   Tcl/Tk support is not available on this system
> Error in library(tcltk) : . First.lib failed for 'tcltk'
> In order to solve this problem, I try to:
> 1. To download the tcl and the tk packages (version: 8.5) from
> http://www.tcl.tk and to install them (the -dev packages also), but the
> error hold over.
> 2. To install the previous releases (version: 8.4) for these packages. The
> error hold over.
> 3. To set the environment variables 'TCL_LIBRARY' and 'TK_LIBRARY', in this
> mode:
> TCL_LIBRARY=/usr/local/lib/tcl8.5 *  (or 8.4)*
> TK_LIBRARY=/usr/lib/tk8.5           *(or 8.4)*
> but the error hold over.
> 4.Therefore, after this modifications, i uninstalled R and I installed again
> it. I try to do this both without setting environment variables and setting
> it. The error hold over.
> I look for a solution.
> Thank you
> Davide Massidda
> *--
> QPLab - Quantitative Psychology laboratory
> Department of General Psychology
> Via Venezia 8 -35131 Padova, Italia*
> 	[[alternative HTML version deleted]]
> ______________________________________________
> 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.

More information about the R-help mailing list