Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Thu, 18 Nov 2010 12:43:44 -0500

On 18/11/2010 10:38 AM, Janko Thyson wrote:
> Sorry, but I'm still kind of puzzled on this one ;-)
>
> Found the Tcl/Tk section in the manual but I don't really understand where I
> have to set those options.

The quote below is from the Unix section of the manual. You're on Windows.

Tcl/Tk is included in the Rtools installer, but you have to choose to install it. It looks as though you didn't, or didn't install it in the right place.

Duncan Murdoch

> Append it to 'make all recommended'? I checked
> 'make --help' which didn't list any such options. Or does that refer to the
> installation of Tcl/Tk itself? I downloaded and installed the binary version
> of Tcl/Tk (ActiveTcl
> http://downloads.activestate.com/ActiveTcl/releases/8.5.9.0/ActiveTcl8.5.9.0
> .293667-win32-ix86-threaded.exe) and as far as I understand, I now need to
> link that to the tcltk package of R, right? I don't know how I would install
> Tcl/Tk from its sources, but if that's the better choice: could anyone drop
> me the command line(s) I need to execute in order to install and link Tcl/Tk
> to my R (pre-)build?
>
> Thanks a lot,
> Janko
>
> SECTION FROM THE MANUAL (P. 32):
> A.2.1 Tcl/Tk
> The tcltk package needs Tcl/Tk>= 8.4 installed: the sources are available
> at http://
> www.tcl.tk/. To specify the locations of the Tcl/Tk files you may need the
> configuration
> options
> ‘--with-tcltk’
> use Tcl/Tk, or specify its library directory
> ‘--with-tcl-config=TCL_CONFIG’
> specify location of ‘tclConfig.sh’
> ‘--with-tk-config=TK_CONFIG’
> specify location of ‘tkConfig.sh’
> or use the configure variables TCLTK_LIBS and TCLTK_CPPFLAGS to specify the
> flags needed
> for linking against the Tcl and Tk libraries and for finding the ‘tcl.h’ and
> ‘tk.h’ headers,
> respectively. If you have both 32- and 64-bit versions of Tcl/Tk installed,
> specifying the paths
> to the correct config files may be necessary to avoid confusion between
> them.
>
> SYSTEM INFO:
> - Windows XP SP 3
> - R-2.12.0
> - Eclipse 3.6.1
> - StatET 0.9.x
>
> > -----Ursprüngliche Nachricht-----
> > Von: Duncan Murdoch [mailto:murdoch.duncan_at_gmail.com]
> > Gesendet: Donnerstag, 18. November 2010 12:54
> > An: Janko Thyson
> > Cc: 'r-devel_at_r-project. org'
> > Betreff: Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)
> >
> > On 18/11/2010 5:40 AM, Janko Thyson wrote:
> > > I've created a /tmp directory so I wouldn't have to change TMPDIR. So
> > far,
> > > so good. But now I get the error below. Anything I forgot regarding
> > tcltk?
> >
> > Looks as if you forgot to install it.
> >
> > Duncan Murdoch
> >
> > >
> > > Thx,
> > > Janko
> > >
> > > ERROR:
> > > 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-win] Error 1
> > > make[2]: *** [all] Error 2
> > > make[1]: *** [R] Error 1
> > > make: *** [all] Error 2
> > >
> > > SYSTEM INFO:
> > > - Windows XP SP 3
> > > - R-2.12.0
> > > - Eclipse 3.6.1
> > > - StatET 0.9.x
> > >
> > >> -----Ursprüngliche Nachricht-----
> > >> Von: Janko Thyson [mailto:janko.thyson_at_ku-eichstaett.de]
> > >> Gesendet: Donnerstag, 18. November 2010 11:13
> > >> An: 'Prof Brian Ripley'
> > >> Cc: 'r-devel_at_r-project. org'
> > >> Betreff: AW: [Rd] Compiling R 2.12.0 from source: error (temp dir)
> > >>
> > >>> -----Ursprüngliche Nachricht-----
> > >>> Von: Prof Brian Ripley [mailto:ripley_at_stats.ox.ac.uk]
> > >>> Gesendet: Mittwoch, 17. November 2010 18:42
> > >>> An: Janko Thyson
> > >>> Cc: 'r-devel_at_r-project. org'
> > >>> Betreff: Re: [Rd] Compiling R 2.12.0 from source: error (temp dir)
> > >>>
> > >>> Is this on Windows? (Please do consult the posting guide and tell
> > us
> > >>> the 'at a minimum' information we asked for.)
> > >>>
> > >>> If so, it seems you forget the bit about setting TMPDIR right at
> > the
> > >>> top of the section on 'Building the core files':
> > >>>
> > >>> Set the environment variable @env{TMPDIR} to point to a
> > writable
> > >>> directory, with a path specified with forward slashes and no
> > >> spaces.
> > >>> (The default is @file{/tmp}, which may not be useful on
> > Windows.)
> > >>>
> > >>
> > >> Sorry, I always forget to provide that info.
> > >>
> > >> Could you tell me where/how I have to set TMPDIR? I've looked in
> > >> MkRules.local but didn't find anything. Or is that an argument at
> > 'make
> > >> all recommended'?
> > >>
> > >> Thanks,
> > >> Janko
> > >>
> > >> SYSTEM INFO:
> > >> - Windows XP SP 3
> > >> - R-2.12.0
> > >> - Eclipse 3.6.1
> > >> - StatET 0.9.x
> > >>
> > >>> On Wed, 17 Nov 2010, Janko Thyson wrote:
> > >>>
> > >>>> Dear list,
> > >>>>
> > >>>>
> > >>>>
> > >>>> I've just tried to compile R 2.12.0 from source as I think I found
> > >> an
> > >>> error
> > >>>> in a C function that I would like to fix and check before I go
> > >> ahead
> > >>> with
> > >>>> posting the presumed error.
> > >>>>
> > >>>>
> > >>>>
> > >>>> I've got the R Toolset 2.12 installed and configured correctly and
> > >>> followed
> > >>>> the Admin manual closely (including the entire bitmap stuff; exact
> > >>> same
> > >>>> versions as in the manual). Also, all anti virus software is
> > turned
> > >>> off (as
> > >>>> it complained on some .exe). I have Admin rights on my box.
> > >>>>
> > >>>>
> > >>>>
> > >>>> When I run 'make all recommended' I get the following error after
> > a
> > >>> while:
> > >>>>
> > >>>>
> > >>>>
> > >>>> cannot create /tmp/R5436: directory nonexistent
> > >>>>
> > >>>> mv: cannot stat `/tmp/R5436': No such file or directory
> > >>>>
> > >>>> make[3]: *** [mkR] Error 1
> > >>>>
> > >>>> make[2]: *** [all] Error 2
> > >>>>
> > >>>> make[1]: *** [R] Error 1
> > >>>>
> > >>>> make: *** [all] Error 2
> > >>>>
> > >>>>
> > >>>>
> > >>>> Any ideas what this is about? Seems that the compiler can't create
> > >> a
> > >>> temp
> > >>>> directory because of a missing directory.
> > >>>>
> > >>>>
> > >>>>
> > >>>> Thanks for any hints,
> > >>>>
> > >>>> Janko
> > >>>>
> > >>>>
> > >>>> [[alternative HTML version deleted]]
> > >>>>
> > >>>> ______________________________________________
> > >>>> 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
> > >
> > > ______________________________________________
> > > R-devel_at_r-project.org mailing list
> > > https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 18 Nov 2010 - 17:45:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 19 Nov 2010 - 18:50:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive