[R] Error when attempting to install tkrplot

John jwd at surewest.net
Sat Jun 9 11:36:08 CEST 2012


I am getting following error when attempting to install the tkrplot
package.  

...
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/tcl8.5
-I/usr/include/tcl8.5     -fpic  -O3 -pipe  -g  -c tcltkimg.c -o
tcltkimg.o tcltkimg.c:2:16: fatal error: tk.h: No such file or
directory compilation terminated. make: *** [tcltkimg.o] Error 1
ERROR: compilation failed for package ‘tkrplot’
* removing ‘/usr/local/lib/R/site-library/tkrplot’
...

My session information is:

R version 2.15.0 (2012-03-30)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
LC_TIME=en_US.UTF-8 [4] LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8 [7]
LC_PAPER=C                 LC_NAME=C                  LC_ADDRESS=C [10]
LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods
base     

other attached packages:
[1] fortunes_1.5-0

loaded via a namespace (and not attached):
[1] tools_2.15.0


The capabilities(tcltk) query yields TRUE.  

Searching the /usr tree does not locate any file "tk.h."

JWDougherty



More information about the R-help mailing list