On 13-04-15 1:11 PM, Andre Mikulec wrote:
Message: 2
Date: Sun, 14 Apr 2013 07:14:28 -0400
From: Duncan Murdoch <murdoch.dun...@gmail.com>
To: Andre Mikulec <andre_miku...@hotmail.com>
Cc: "r-devel@r-project.org" <r-devel@r-project.org>
Subject: Re: [Rd] windows compile R from source, where do I put the
Tcl directory?
Message-ID: <516a8f94.1040...@gmail.com>
Content-Type: text/plain; charset=KOI8-R; format=flowed

On 13-04-13 10:03 PM, Andre Mikulec wrote:
Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Apr 11 13:32:02 CEST 2013
Previous message: [Rd] windows compile R from source, where do I put the Tcl 
directory?
Next message: [Rd] Trying to make DEBUG=T a debug version of R
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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


"Why in src? It is a binary distriution."

Yes, I have the binary distribution ( but it is not found in RTools )

"
Rtools30.exe does this for you. But you put it at the top level in the
sources.
"
Maybe I do not know where the 'top level' is located.

Please, help.

I used "tree /f" and search for
"tk" and "tcl" files in my

F:\RTools folder

The Tcl/Tk files are in Rtools.exe, and are installed to the top level
of the R directory tree, unless you chose (when running Rtools.exe) not
to install them. They are not installed to the Rtools directory tree.

Duncan Murdoch



I have spent 3 attempts to compile R and end up at the very same spot.


   "tcltk.h:23:17: fatal error: tcl.h: No such file or directory"


RTools.exe does not install a tcl.h file.  It is not there. I looked and looked 
and looked.

That's because you told it not to. Run it again, and select one or both of the "Extras" under custom installation, or "full installation".



R-2.15.3 source code does not have a tcl.h file. I looked and looked and looked.


R_Tcl_8-5-8.zip does have a tcl.h file.



2. My folder contents are the following.


   1. RTools folder,
   2. R-2.15.3 source code folder
   3. Tcl folder ( from R_Tcl_8-5-8.zip )


Their locations are the following.


   1. F:\RTools
   2. M:\YDrive\All_Economics\eclipse_workspace\R\R-2.15.3
   3. M:\YDrive\All_Economics\eclipse_workspace\Tcl


Where do I stick the "Tcl" folder?

In M:\YDrive\All_Economics\eclipse_workspace\R\R-2.15.3.


What is a "top level of the R directory tree?" Where is it?

M:\YDrive\All_Economics\eclipse_workspace\R\R-2.15.3

By the way, I don't think it will be a problem, but that path is getting kind of long, and Windows has a 256 character limit on path length.

Duncan Murdoch



Thank you,
Andre Mikulec
andre_miku...@hotmail.com





                                        
        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to