Hi All, I am trying to compile R 2.13.0 r53834 on 64-bit Windows 7 (home premium) using Rtools212.exe from Duncan Murdoch's site. I (think) I followed the installation guide for Windows. When installing Rtools, made sure I was installing 64-bit tools (including tcltk), etc. I created a copy of MkRules.local where I selected 64 bit instead of 32 architecture. When I run: C:\R\R-devel\src\gnuwin32> make all recommended I get the following error at the very end: building package 'tcltk' making init.d from init.c making tcltk.d from tcltk.c making tcltk_win.d from tcltk_win.c x86_64-w64-mingw32-gcc -I"../../../../include" -I "../../../../Tcl"/include -DWi n32 -O2 -Wall -std=gnu99 -c init.c -o init.o In file included from init.c:22:0: tcltk.h:23:17: fatal error: tcl.h: No such file or directory compilation terminated. make[4]: *** [init.o] Error 1 make[3]: *** [mksrc-win2] Error 1 make[2]: *** [all] Error 2 make[1]: *** [R] Error 1 make: *** [all] Error 2 which seems suggestive that I did not install tcltk or it is looking for it in the wrong location. Is there an environment variable I need to set or should I add something to my PATH? Rtools created a directory C:\R64\Tcl which includes a tcl.h file, so I think that is what I need, I am just not sure how to tell the compiler where to find it. Everything else works like a charm. Any tips or pointers where to start would be appreciated. My sincerest apologies if I missed something from the installation manual or one of the readmes for Rtools. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
Peter Langfelder
2010-Dec-14 01:26 UTC
[R] tcltk error compiling R 2.13.0 under Windows 7 x64
On Mon, Dec 13, 2010 at 4:33 PM, Joshua Wiley <jwiley.psych at gmail.com> wrote:> Hi All, > > I am trying to compile R 2.13.0 r53834 on 64-bit Windows 7 (home > premium) using Rtools212.exe from Duncan Murdoch's site. ?I (think) I > followed the installation guide for Windows. ?When installing Rtools, > made sure I was installing 64-bit tools (including tcltk), etc. ?I > created a copy of MkRules.local where I selected 64 bit instead of 32 > architecture. ?When I run: > > C:\R\R-devel\src\gnuwin32> make all recommended > > I get the following error at the very end: > > building package 'tcltk' > making init.d from init.c > making tcltk.d from tcltk.c > making tcltk_win.d from tcltk_win.c > x86_64-w64-mingw32-gcc -I"../../../../include" -I "../../../../Tcl"/include -DWi > n32 ? ? ? ? -O2 -Wall ?-std=gnu99 -c init.c -o init.o > In file included from init.c:22:0: > tcltk.h:23:17: fatal error: tcl.h: No such file or directory > compilation terminated. > make[4]: *** [init.o] Error 1 > make[3]: *** [mksrc-win2] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [R] Error 1 > make: *** [all] Error 2Just in case no one knowledgeable answers, here's my shot in the dark (I'm mostly a linux user)... the compiler is looking for .h files in the directories listed in the --I options to gcc, which seems to be Tcl, not Tcl64. The compiler also defines a macro Win32 which to my untrained eyes seems suspicious since you are trying to produce a 64-bit executable, right (although perhaps Win32 also applies to 64-bit version, I'm not sure)? Maybe your selection of 64 bit architecture wasn't honored - is the compiler reading the modified copy or the original of MkRules? Peter
Seemingly Similar Threads
- windows compile R from source, where do I put the Tcl directory?
- trying to compile R in win 7 (with Rtools)
- R-3.3.0 Base: Windows compilation fails while building 'base' package
- Rtools version 3.3.0.1957 looking for C even though RTOOLS variable is pointing elsewhere
- Error building Tcl: R-patched_2016-07-05