From ripley at stats.ox.ac.uk  Tue Apr  3 10:41:37 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 3 Apr 2007 09:41:37 +0100 (BST)
Subject: [Rd] [R] Compiling C codes in Windows
In-Reply-To: <dca1bca314395.4611abbb@usc.edu>
References: <de40888b11fbf.46105d26@usc.edu>
	<6ph8xdb9my7.fsf@gopher4.fhcrc.org>
	<46112D84.8020304@stats.uwo.ca> <dca1bca314395.4611abbb@usc.edu>
Message-ID: <Pine.LNX.4.64.0704030939360.17627@gannet.stats.ox.ac.uk>

On Tue, 3 Apr 2007, Tong Wang wrote:

> Thank you all for the help . It seems I only need to change the back slash to forward slash to get things work .
>
> As to using Cygwin as the shell, I couldn't find an instruction 
> dedicated to Cygwin, should I just follow the " Installing R under 
> Unix-alikes " ?  Is there an easier way, like making use of the 
> installed binaries.

Yes, any reasonable shell works (I use tcsh, Duncan Murdoch uses bash), 
and you can install packages, use SHLIB and so via the installed binaries.
It is all documented.

> I will post future questions to R-devel.
>
> Thanks again.
>
> tong
>
> ----- Original Message -----
> From: Duncan Murdoch <murdoch at stats.uwo.ca>
> Date: Monday, April 2, 2007 9:21 am
> Subject: Re: [R] Compiling C codes in Windows
> To: Martin Morgan <mtmorgan at fhcrc.org>
> Cc: Tong Wang <wangtong at usc.edu>, R help <r-help at stat.math.ethz.ch>
>
>> On 4/2/2007 4:53 AM, Martin Morgan wrote:
>>> Tong Wang <wangtong at usc.edu> writes:
>>>
>>>> Hi All,
>>> [...]
>>>> After I followed all the instructions in " Building R for
>> Windows"
>>> [...]
>>>>      Anyway, I assumed that I need to run this command in Cygwin
>>>
>>> No, do this from a DOS shell.
>>
>> Cygwin is fine as a shell (it's what I use), but the rest of your
>> advice
>> is correct:
>>
>>> The usual problems are either missing
>>> components from the installation steps outlined in Building R for
>>> Windows, or an incorrect PATH variable so that windows or cygwin
>>> versions of programs are used rather than MinGW / Rtools.
>>
>> Duncan Murdoch
>>
>>>
>>> Also, this question belongs on the R-devel list, where those doing
>>> development work are more likely to see and respond to your
>>> questions.
>>>
>>> Hope that helps,
>>>
>>> Martin Morgan
>>>>
>>>> $ make all recommended
>>>> make: ./Rpwd.exe: Command not found
>>>> make[1]: ./Rpwd.exe: Command not found
>>>> make --no-print-directory -C front-ends Rpwd
>>>> make -C ../../include -f Makefile.win version
>>>> make Rpwd.exe
>>>> gcc  -O3 -Wall -pedantic -I../../include  -c rpwd.c -o rpwd.o
>>>> rpwd.c:22:20: direct.h: No such file or directory
>>>> rpwd.c: In function `main':
>>>> rpwd.c:42: warning: implicit declaration of function `chdir'
>>>> rpwd.c:45: warning: implicit declaration of function `getcwd'
>>>> make[3]: *** [rpwd.o] Error 1
>>>> make[2]: *** [Rpwd] Error 2
>>>> make[1]: *** [front-ends/Rpwd.exe] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>> Can I get some help with my quesitons , and some suggestions
>> concerning the best way to solve the whole problem ?
>>>>
>>>> THanks a lot  for your help..
>>>>
>>>> tong
>>>>
>>>> ______________________________________________
>>>> R-help at stat.math.ethz.ch mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide http://www.R-
>> project.org/posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] [R] Compiling C codes in Windows
Prof Brian Ripley