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

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Sat, 20 Oct 2007 07:20:19 -0700

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 20 Oct 2007 - 14:21:49 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.