[R] Compiling R Package on Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 24 22:50:11 CET 2002


You need to fix the error, which is

  make[1]: /bin/sh.exe: Command not found

I think it means /bin/sh.exe is not found, but it might mean perl is not
being found.  In any case, this is a clear error message, and you must
resolve it.

The problem you are having is installing source packages, and build
without --binary does not try to do that.  I would note though that you
are lucky this works at all, as you appear to be using an installation
path with spaces in, and readme.packages does say

  BEWARE: Don't expect this to work if the path to R_HOME contains spaces.

Under Windows 2000/XP, it doesn't work; it does sometimes under earlier
versions of Windows, but that might be why you are having problems.

There are similar warnings in the rw-FAQ.


On Fri, 25 Jan 2002, Ko-Kang Kevin Wang wrote:

> I just installed the R-patched 1.4.0 and for some reason I now have
> trouble compiling R packages - I could compile it a few weeks ago with R
> 1.4.0 released in December.  This only happens if I put the --binary
> option in.
>
> For example:
>   Rcmd build --binary cw
> returns the error:
> make: Entering directory `/cygdrive/c/PROGRA~1/R/RW1040/src/gnuwin32'
> make DLLNM= \
>   -C C:/MyRWork/cw PKG=cw RHOME=c:/PROGRA~1/R/RW1040
> RLIB=c:/TEMP/Rbuild.503609
> \
>   -f c:/PROGRA~1/R/RW1040/src/gnuwin32/MakePkg
> make[1]: Entering directory `/cygdrive/c/MyRWork/cw'
> if [ ! -f ./TITLE -a -f ./DESCRIPTION ] ; then \
>   perl c:/PROGRA~1/R/RW1040/share/perl/maketitle.pl ./DESCRIPTION >
> TITLE; \
> fi
> make[1]: /bin/sh.exe: Command not found
> make[1]: *** [TITLE] Error 127
> make[1]: Leaving directory `/cygdrive/c/MyRWork/cw'
> make: *** [pkg-cw] Error 2
> make: Leaving directory `/cygdrive/c/PROGRA~1/R/RW1040/src/gnuwin32'
> *** Installation of cw failed ***
>
> installing R.css in c:/TEMP/Rbuild.503609
>
> * building `cw_0.1.zip'
>         zip warning: name not matched: cw
>
> zip error: Nothing to do! (try: zip -r9X C:/MyRWork/cw_0.1.zip . -i cw)
>
>
> But if I do something like:
>   Rcmd build cw
> then I can successfully built a .tar.gz version of it...
>
> Thanks in advance for the help :-)
>
> Ko-Kang Wang
>
> ------------------------------------------------------------------------------
> Ko-Kang Kevin Wang
> Postgraduate PGDipSci Student (Summer Research Assistant)
> Department of Statistics
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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