[R] Build R-patched from Source

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Sat Jan 19 23:35:52 CET 2002


Ah yes, thanks.  I did forget to put hcc and unzip32.dll in my PATH.

Now I have successfully built R, and also build the zip distribution files
with:
    make distribution

However when I edited the Makefile under the installer directory as
follows:
    # location where Inno Setup was installed
    ISDIR="C:\Program Files\Inno Setup 2"
    # location where binary packages are kept
    PKGS=C:\Temp\R-patched\library

I got the following errors when I tried to make:
    [...omitted...]
    unzip:  cannot find either C:TempR-patchedlibrary/survival or
C:TempR-patchedlib
    rary/survival.zip.
    [...omitted...]
I have omitted the rest of lines as they're all the same.

I have also tried to change the PKGS definition to:
    PKGS=C:/Temp/R-patched/library
but it still didn't work.

Is it a wrong way to specify my PKGS?  C:\Temp\R-patched is my $R_HOME,
hence C:\Temp\R-patched\library contains all the compiled packages.

BTW I understand what R-patched and R-devels are, but what is R-ng in the
ftp directory?

Thanks again,


Ko-Kang Wang


On Sat, 19 Jan 2002, Prof Brian Ripley wrote:

> Date: Sat, 19 Jan 2002 07:15:43 +0000 (GMT)
> From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> To: Ko-Kang Kevin Wang <kwan022 at stat.auckland.ac.nz>
> Cc: R Help <r-help at stat.math.ethz.ch>
> Subject: Re: [R] Build R-patched from Source
> 
> On Sat, 19 Jan 2002, Ko-Kang Kevin Wang wrote:
> 
> > Hi,
> >
> > If I want to build R-patched from source (on Windows), do I need to edit
> > Makefile and/or MkRules at all?
> 
> You don't need to edit the Makefile.  You probably do need to edit
> MkRules.
> 
> > I have followed all instructions in the INSTALL file (under
> > R-patched/src/gnuwin32/), as well as downloaded all the files from
> > http://www.stats.ox.ac.uk/pub/Rtools/ .  My PATH variable has been
> > modified accordingly.
> 
> Don't think so. hhc.exe appears not to be in your path, hence the first
> problem below, and the second looks like another missed step.
> 
> > Now, with the only change to MkRules I made was to modify the Tcl/Tk path,
> > to C:/Tcl.  Then when I do:
> >    make
> > it goes on and on until it displays (I'm compiling under DOS Prompt):
> >     /cygdrive/c/BIN/MAKE  --no-print-directory -C
> > C:/Temp/R-patched/src/library/base
> >     /chm -f C:/Temp/R-patched/src/gnuwin32/help/Makefile base.chm
> >     cp C:/Temp/R-patched/src/gnuwin32/help/Rchm.css Rchm.css
> >     cp C:/Temp/R-patched/doc/html/logo.jpg logo.jpg
> >     hhc base.hhp
> >     MAKE[3]: hhc: Command not found
> >     MAKE[3]: [base.chm] Error 127 (ignored)
> >     mkdir -p C:/Temp/R-patched/library/base/chtml
> >     cp C:/Temp/R-patched/src/library/base/chm/base.chm
> > C:/Temp/R-patched/library/bas
> >     e/chtml
> >     cp: cannot stat `C:/Temp/R-patched/src/library/base/chm/base.chm': No
> > such file
> >     or directory
> >     MAKE[2]: *** [chm-base] Error 1
> >     MAKE[2]: Leaving directory
> > `/cygdrive/c/Temp/R-patched/src/gnuwin32/help'
> >     MAKE[1]: *** [pkg-base] Error 2
> >     MAKE[1]: Leaving directory `/cygdrive/c/Temp/R-patched/src/gnuwin32'
> >     MAKE: *** [rpackage] Error 2
> >
> > However the *.exe files under bin directory were made and I can open
> > RGui.exe without a problem.  It is only when I tried to do a make check
> > when I found problems in the base package.  It also happens when I tried
> > running demo(graphics) under RGui - it stops and says cannot find iris
> > data (but it is there when I checked under base/data).
> 
> Ah, did you install unzip.dll?
> 
> > If I then cd into bitmap, and to a:
> >     make
> > then it also works fine.
> >
> > I also tried to compiled some packages, such as the ctest
> > (R-patched/src/library), and get:
> >     ---------- Making package ctest ------------
> >     mkdir -p C:/TEMP/R-PATCHED/library/ctest
> >     cp -r   ./INDEX  ./TITLE  C:/TEMP/R-PATCHED/library/ctest/
> >       adding build stamp to DESCRIPTION
> >     make[1]: *** [C:/TEMP/R-PATCHED/library/ctest/zzzz] Error 2
> >     make[1]: Leaving directory
> > `/cygdrive/c/Temp/R-patched/src/library/ctest'
> >     make: *** [pkg-ctest] Error 2
> >     make: Leaving directory `/cygdrive/c/TEMP/R-PATCHED/src/gnuwin32'
> >     *** Installation of ctest failed ***
> 
> That I have no idea about.
> 
> > Some of the R-recommended packages also have the same problem.  As a
> > result when I tried to make everything into one SetupR.exe it also stopped
> > right at the beginning...
> >
> > Any help will be greatly appreciated ;-)
> 
> You really do have to follow all the instructions exactly.
> 
> -- 
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> 

------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list