From ripley at stats.ox.ac.uk  Thu Apr 11 13:32:02 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 11 Apr 2013 12:32:02 +0100
Subject: [Rd] windows compile R from source,
	where do I put the Tcl directory?
In-Reply-To: <BLU174-W412329522E78B100BDEE869CC70@phx.gbl>
References: <BLU174-W412329522E78B100BDEE869CC70@phx.gbl>
Message-ID: <51669F32.5030002@stats.ox.ac.uk>

On 11/04/2013 00:27, Andre Mikulec wrote:
> Hi,
>
> I am trying to compile R from source on Windows.
> I am following the instructions here
>
> 3.1 Building from source
> 3 Installing R under Windows
> file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html
>
> It only says,
>
> "
> The Tcl/Tk support files are contained in Rtools30.exe and
> available as .zips from http://www.stats.ox.ac.uk/pub/Rtools.
> Please make sure you install the right version: there is a 32-bit
> version and a 64-bit version.
> "
>
> Anyways,
> I collected the support files from here.
> http://www.stats.ox.ac.uk/pub/Rtools/R_Tcl_8-5-8.zip
>
> The instructions do not say "where to put my Tcl folder."

Rtools30.exe does this for you.  But you put it at the top level in the 
sources.

> So I just guessed, based on ( include, doc, and bin are parallel directories )
> in F:\ProgramFiles\R\R-2.15.3\Tcl
>
> I guessed ( and guessed wrong ) ...
> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\Tcl

Why in src?  It is a binary distriution.

> When Try to compile with
>
> M:\YDrive\All_Economics\eclipse_workspace\R-2.15.3\src\gnuwin32>make all recommended
>
> I eventually get ...
>
>    "tcltk.h:23:17: fatal error: tcl.h: No such file or directory"
>
> in the message
>
> building package 'tcltk'
> making init.d from init.c
> making tcltk.d from tcltk.c
> making tcltk_win.d from tcltk_win.c
> gcc  -I"../../../../include" -DNDEBUG -I "../../../../Tcl"/include -DWin32         -O3 -Wall -gdwarf-2 -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
>
> Please, help.
>
> Thank you.
> Andre Mikulec
> Andre_Mikulec at Hotmail.com 		 	   		
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] windows compile R from source, where do I put the Tcl directory?
Prof Brian Ripley