Re: [Rd] Windows fixed/etc/Makeconf SHELL incorrect?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sat, 20 Oct 2007 09:39:41 -0400

Martin Morgan wrote:
> D:\mtmorgan\src\R-devel>bin\R CMD config CC
> make: /bin/sh: Command not found
> make: ** [print] Error 127
> make: /bin/sh: Command not found
> make: ** [print] Error 127
>
> D:\mtmorgan\src\R-devel>bin\R CMD config CC
>
> This is on a system where cygwin and Rtools (from your installer) are
> under c:/usr (rather than the more usual location for cygwin directly
> under c:/). The system has seen many cooks over the years, and there
> could well be a misconfiguration somewhere else. PATH (e.g., to make,
> sh, ar) seem to point to the right location, versions seem to be
> correct, and changing SHELL to sh remedies the situation.
>
I suspect you have path problems. Cygwin should generally follow all of the R tools in the path, because we have some modified versions of Cygwin utilities. For example, when running in CMD.EXE, this path works for me:

C:\Documents and Settings\murdoch>path
PATH=c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;C:\texmf\miktex\bin;f:\texmf\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\ Wbem;f:\Program Files\Subversion\bin:f:\R\svn\R-devel\R\bin

In a Cygwin bash shell I use this path:

$ printenv PATH
$ printenv PATH
/cygdrive/c/Rtools/bin:/cygdrive/c/Rtools/perl/bin:/cygdrive/c/Rtools/minGW/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/util/misc:/cygdrive/c/windows/system32:/cygdrive/f/R/svn/r-devel/R/bin:/cygdrive/f/texmf/miktex/bin:/cygdrive/c/progra~1/htmlhe~1:/cygdrive/f/program files/subversion/bin



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 20 Oct 2007 - 13:43:27 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 Thu 25 Oct 2007 - 11:37:11 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.