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]]
On Fri, Jul 18, 2008 at 01:09:25AM +0200, 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.Read the README at cran.r-project.org/bin/linux/ubuntu/ and install the pre-built version. It has working tcl/tk support; and all other features should be available too. edd at joe:~$ echo "capabilities()" | R --slave jpeg png tcltk X11 aqua http/ftp sockets libxml TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE fifo cledit iconv NLS profmem cairo TRUE FALSE TRUE TRUE TRUE TRUE edd at joe:~$ dpkg -l r-base-core|tail -1 ii r-base-core 2.7.1-1hardy0 GNU R core of statistical computing language edd at joe:~$ Dirk -- Three out of two people have difficulties with fractions.
Davide Massidda wrote:> Dear all, > I have installed R on Linux/Ubuntu 8.04.But you don't say how. Are you compiling R yourself or installing the Ubuntu package from CRAN?
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 --with-tk-config=/my/path/to/tkConfig.sh make etc. I hope this helps, Roland 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. >