On Fri, 5 Nov 2010 12:08:23 +0000
Peter <rpy-l...@maubp.freeserve.co.uk> wrote:

> On Fri, Nov 5, 2010 at 11:03 AM, Paul <p...@wci.ath.cx> wrote:
> >
> > i tried all the combinations for  {python2.6.5 , python2.6.6}
> > {R2.10.1, R2.11.1, R2.12.0} {rpy2.15, rpy2.17, rpy_cvs2.1.x,
> > rpycvs2.2.x}
> >
> > moreover, when i try C:\R\R-2.12.0\bin\R" CMD config --ldflags by
> > hand (and the same applies to R2.11 and R2.10) i get:
> >
> > C:\>C:\r\r-2.10.1\BIN\R CMD config --ldflags
> > 'sh' is not recognized as an internal or external command,
> > operable program or batch file.
> >
> > i dont know what's wrong in my system..
> 
> In a similar situation Laurent told me:
> >> You need the R development toolkit (mingw and some unix tools).
> >> Check the R FAQ for Windows.
> 
> In particular you appear to be missing the Unix shell (sh), which
> can be installed via cygwin.
> 
> Beware that installing rpy2 from source on Windows is tricky
> (last time I tried I gave up). Have you tried the Windows
> installers instead (most recent looks like rpy 2.0.8)?
> 
> Peter



Hi Peter, thanks for your answer very much

actually you are right, and i had already figured out i needed R-tools
(which i installed).

But this point i guess i am getting the same error you were getting:

C:/R/R-2.12.0/include\R_ext/RS.h(43) : warning C4005: 'ERROR' : macro
redefiniti on C:\Program Files\\Microsoft
SDKs\Windows\v6.0A\include\wingdi.h(104) : see previous definition of
'ERROR' 
rpy\rinterface\rinterface.c(65) : fatal error C1083: Cannot open
include file: ' Rinterface.h': No such file or directory 
error: command '"c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\cl.ex e"' failed with exit status 2

I also dont know why the script decided to use VC compiler instead of
mingw,
i guess there are some option i could set to force one or other
compiler,
but it is not really documented so i dont know..

about the installer, i could not possibly find it.
I just found (and tried) the 2.0.8 from 
http://bitbucket.org/lgautier/rpy2/downloads

(which looked to me the installer you and Laurent were mentioning),
but when i try python setup.py install i get a whole bunch of errors,
more than here...

Do you have any idea?

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to