[Rd] Building a custom Windows installer

From: John Fox <jfox_at_mcmaster.ca>
Date: Tue, 13 Jul 2010 17:02:57 -0400


Dear r-devel list members,

It's been several years since I last built a custom Windows installer for R, and despite my notes and the instructions in Sections 3.1.7 and D.4 of the R Installation and Administration Manual, I've run into a problem, receiving the following error message:

C:\R\src\R-2.11.1\src\gnuwin32\installer>make myR IMAGEDIR=c:/temp/R-2.11.1 MDISDI=1

Makefile:3: ../MkRules: No such file or directory
make: ../fixed/rwver.pl: Command not found
make: ../fixed/rwver.pl: Command not found
make: ../fixed/rwver.pl: Command not found
make: ../fixed/rwver.pl: Command not found
make: *** No rule to make target `../MkRules'. Stop.

My path looks like this:

C:\R\src\R-2.11.1\src\gnuwin32\installer>set path Path=c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;C:\Program Files\Commo
n Files\Microsoft Shared\Windows Live;C:\GTK\bin;C:\Program Files\Insightful\spl
us80\;C:\Program Files\ActiveState Komodo Edit 4\;.;c:\R\R-2.11.1\bin;C:\progra~
1\miktex~1.7\miktex\bin;c:\progra~1\htmlhe~1;C:\Windows\system32;C:\Windows; C:\W
indows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Pr
ogram Files\GnuWin32\bin;C:\Program Files\CollabNet Subversion;C:\Program

Files\
MySQL\MySQL Server 5.1\bin;C:\Program Files\SAS\Shared
Files\Formats;C:\Program
Files\TortoiseSVN\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Fil
es\Smart Projects\IsoBuster;C:\Program Files\MiKTeX 2.7\miktex\bin\;C:\Program F
iles\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows
Live;C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Fi
les\Bibtex2html;C:\Graphviz2.20\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

The directory c:/temp/R-2.11.1 contains a complete customized installation of R, while C:\R\src\R-2.11.1 contains the unpacked R sources. This is on a Windows Vista system. I've updated Rtools to version 2.11. I can supply more information, but I'm not sure what's relevant.

I don't think that I should have to place a MkRules file in the gnuwin32 directory, but I tried copying each the MkRules.dist and MkRules.rules files there in turn to MkRules. Neither worked; I apparently got farther copying MkRules.rules to MkRules, but eventually got another error:

C:\R\src\R-2.11.1\src\gnuwin32\installer>make myR IMAGEDIR=c:/temp/R-2.11.1 MDISDI=1
echo "make.packages.html(.Library)" | c:/temp/R-2.11.1/bin/rterm --vanilla
--sla

ve LC_COLLATE=C
Making packages.html ... done
adding MD5 checksums
perl JRins.pl R-2.11.1 c:/temp/R-2.11.1 1 1 0 R-core "/iscc" R.iss > myR.log
/iscc: not found
make: *** [myR] Error 127

Any help would be appreciated.

John



John Fox
Senator William McMaster
  Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 13 Jul 2010 - 21:49:57 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 Wed 14 Jul 2010 - 10:30:14 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