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

Martin Morgan mtmorgan at fhcrc.org
Sat Oct 20 16:20:19 CEST 2007


Thanks to both for your time.

I edited bin/config:124 to display info before one of the problematic
make commands, adding

echo "MAKE --version: `${MAKE} --version`"
echo "which MAKE: `which ${MAKE}`"
echo "R_HOME: ${R_HOME}"
echo "R_SHARE_DIR: ${R_SHARE_DIR}"
echo "query: $query"

here is the output:

D:\mtmorgan\src\R-devel\bin>R CMD config CC
MAKE --version: GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.

Built for i686-pc-cygwin
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>.

which MAKE: /cygdrive/c/usr/Rtools/bin/make
R_HOME: D:/mtmorgan/src/R-devel
R_SHARE_DIR: D:/mtmorgan/src/R-devel/share
query: make -s -f D:/mtmorgan/src/R-devel/etc/Makeconf -f D:/mtmorgan/src
/R-devel/share/make/config.mk print R_HOME=D:/mtmorgan/src/R-devel
make: /bin/sh: Command not found

which looks correct?

The PATH is hopeless, but starts

PATH: /cygdrive/d/mtmorgan/src/R-devel/bin:/cygdrive/c/GTK/bin:/cygdrive/c/progr
am files/imagemagick-6.3.2-q16:.:/cygdrive/c/usr/Rtools/bin:/cygdrive/c/usr/Rtoo
ls/MinGW/bin:/cygdrive/c/usr/Perl/bin/:

A much abbreviated PATH does not have any better success

D:\mtmorgan\src\R-devel\bin>set PATH=c:\usr\Rtools\bin;C:\usr\Rtools\MingGW\bin

D:\mtmorgan\src\R-devel\bin>R CMD config CC
MAKE --version: GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.

Built for i686-pc-cygwin
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>.

which: not found
which MAKE:
R_HOME: D:/mtmorgan/src/R-devel
R_SHARE_DIR: D:/mtmorgan/src/R-devel/share
query: make -s -f D:/mtmorgan/src/R-devel/etc/Makeconf -f D:/mtmorgan/src
/R-devel/share/make/config.mk print R_HOME=D:/mtmorgan/src/R-devel
make: /bin/sh: Command not found
make: *** [print] Error 127

I guess the take-home message is that the problem is likely a system
configuration issue on our end, so I'll try to clean things up. Thanks
for your time.

Martin

Duncan Murdoch <murdoch at stats.uwo.ca> writes:

> 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



More information about the R-devel mailing list