On Wed, Aug 18, 2010 at 12:00 AM, Anup Parikh <anup.par...@gmail.com> wrote:
>
> I have been using rpy for a project for over a year now and would like
> to help maintain it for newer versions of R and python.
>
> I followed the instructions for compiling under windows without much
> luck. To start with I just want to compile rpy 1.0.3 with python 2.6
> and R 2.9.1. Any help in setting up my windows environment would be
> greatly appreciated.
> I am using windows 7 64 bit. I have installed MinGW 5.1.6 and Python 2.6.
>
> I see the following errors (The full output is below):
>
> error: Unable to find vcvarsall.bat
> ---
> src/RPy.h:67:27: Rgraphics.h: No such file or directory
> src/RPy.h:77:51: Rdevices.h: No such file or directory
>
>
> Thanks for any help,
> Anup
>
>
> Here is the setup.bat file I run:
>
> ===========================================
> REM Important Paths
> set MINGW=C:\MinGW
> set PYTHON=C:\Python26
>
> path %MINGW%\bin;%PYTHON%;%PATH%
>
> echo copying setup.Win32 to setup.cfg
> copy setup.Win32 setup.cfg
>
> REM Uncomment to specify a location for R
> REM set RHOMES=C:\Progra~1\R\R-2.2.1
>
> REM Uncomment to clean up completely before starting
> python setup.py build clean --all
>
> REM Perform Local Build and Install
> python setup.py build_ext --compiler=mingw32 install --force
>
> REM Create Windows Installer
> python setup.py build --compiler=mingw32 bdist_wininst
>
> echo Removing setup.cfg
> del setup.cfg
> ===========================================
>
> And here is the output:
>
> ===========================================
> copying setup.Win32 to setup.cfg
>        1 file(s) copied.
> RHOMES= ['C:/cygwin/home/anup/R']
> DEBUG= True
> ### Using R verion 2.9.1 installed at C:/cygwin/home/anup/R ###
> RHOME= C:/cygwin/home/anup/R

That bit puzzles me. Are you trying to use a Unix flavour R running
within Cygwin? I don't know if that works with rpy - I always used to
use the standard R for Windows installs on 32bit Windows XP.

Also if you are using windows 7 64 bit this may be complicated.
Again, I haven't kept track, but I'm not sure if rpy has been used
successfully on any 64 bit Windows (I found one email thread
where someone tried but appeared to be unsucsessful), or on
any version of Windows 7 (again, I found an email where
someone tried and failed).

Note that trying rpy2 is also going to be hard work, since Laurent
doesn't have a Windows machine to develop on.

Peter

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to