Hi Laurent,
Thanks for the info. I will investigate it further and report.

My apologies for dropping the list - I didn't realize I did that. Back online 
now.

Best,
Yair

On Jun 28, 2012, at 5:10 PM, Laurent Gautier wrote:

> On 2012-06-28 21:20, Yair Benita wrote:
>> Hi Laurent,
>> Thanks for the response. Your constant support of this project is admirable.
>> 
>> The Rconfig.h and Rversion.h are both in 
>> /Library/Frameworks/R.framework/Versions/2.1.4/Resources/include
>> However, there are sub-directories for i386 and x86_64 in include that each 
>> have both files.
>> In the include directory, it would point to i386 or x86_64 depending on the 
>> platform.
>> 
>> I found another interesting issue. The default python in /usr/bin/python is 
>> version 2.6.1 and appear to be able to compile Rpy2.
> 
> Yes. The 2.2.x series for rpy2 should work with Python 2.6. Rpy2-2.3.x 
> whenever released might only work with Python 2.7, and beyond that it might 
> Python 3-only.
> 
>> This python is also 64 bit.
>> When I use python 2.7 which I installed using Fink. I get the error below. 
>> Any idea why that happens?
> 
> Many things can go wrong with Fink (or Macports... those are the two I used a 
> bit). May be they do funny stuff to the framework definitions ? I vaguely 
> remember people having such problem that went away when they compiled their 
> own Python (I did compile my own when using OS X).
>> 
>> Thanks,
>> Yair
>> 
>> On Thu, Jun 28, 2012 at 8:53 AM, Laurent Gautier <lgaut...@gmail.com> wrote:
>> 
>> 
>> On 2012-06-28 07:21, Yair Benita wrote:
>> Hi All,
>> I am trying to install rpy2 (2.2.6) on mac os x 10.6.8 with python 2.7 and R 
>> 2.14.1.
>> I think all my env variables are correct but I still get the underlying 
>> error. I think I previously solved it by forcing it to compile with arch 
>> x86_64 - but I can't remember what I did.
>> 
>> One good reason to share fixes to issues with the community (so it acts as 
>> collective memory ;-) ).
>> 
>> At the moment I don't have OS X-10.6.8 nearby. Can you locate where are 
>> Rconfig.h or Rversion.h ?
>> 
>> 
>> L.
>> 
>> 
>>  Can anyone help?
>> 
>> Thanks,
>> Yair
>> 
>> ~$ easy_install rpy2
>> Searching for rpy2
>> Reading http://pypi.python.org/simple/rpy2/
>> Reading http://rpy.sourceforge.net
>> Best match: rpy2 2.2.6
>> Downloading 
>> http://pypi.python.org/packages/source/r/rpy2/rpy2-2.2.6.tar.gz#md5=32d73a3e4acb915ce15d958c9092dcb8
>> Processing rpy2-2.2.6.tar.gz
>> Writing 
>> /var/folders/HU/HUM+PVEdFU8FgIU8u5qB+k+++TI/-Tmp-/easy_install-UIkMqK/rpy2-2.2.6/setup.cfg
>> Running rpy2-2.2.6/setup.py -q bdist_egg --dist-dir 
>> /var/folders/HU/HUM+PVEdFU8FgIU8u5qB+k+++TI/-Tmp-/easy_install-UIkMqK/rpy2-2.2.6/egg-dist-tmp-G4GNIC
>> Configuration for R as a library:
>>   include_dirs: ('/Library/Frameworks/R.framework/Resources/include', 
>> '/Library/Frameworks/R.framework/Resources/include/x86_64')
>>   libraries: ('Rblas', 'Rlapack')
>>   library_dirs: ('/Library/Frameworks/R.framework/Resources/lib/x86_64',)
>>   extra_link_args: ('-framework R', '-F/Library/Frameworks/R.framework/..')
>>  # OSX-specific (included in extra_link_args)
>>   framework_dirs: ('-F/Library/Frameworks/R.framework/..',)
>>   frameworks: ('-framework R',)
>> warning: no previously-included files matching '*patch*' found anywhere in 
>> distribution
>> warning: no previously-included files matching '*diff*' found anywhere in 
>> distribution
>> warning: no previously-included files matching '.hg' found anywhere in 
>> distribution
>> no previously-included directories found matching 'dist'
>> In file included from ./rpy/rinterface/_rinterface.c:63:
>> /Library/Frameworks/R.framework/Resources/include/Rinternals.h:657: warning: 
>> function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:79:
>> /Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26: 
>> warning: function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:132:
>> ./rpy/rinterface/sequence.c: In function ‘VectorSexp_ass_slice’:
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘sexp_item’
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘tmp’
>> ./rpy/rinterface/sequence.c:541: warning: unused variable ‘vs’
>> ./rpy/rinterface/sequence.c:478: warning: unused variable ‘self_typeof’
>> ./rpy/rinterface/_rinterface.c: At top level:
>> ./rpy/rinterface/sequence.c:2173: warning: ‘ComplexVectorSexp_AsSexp’ 
>> defined but not used
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ShowFiles’:
>> ./rpy/rinterface/_rinterface.c:748: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_FlushConsole’:
>> ./rpy/rinterface/_rinterface.c:602: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ReadConsole’:
>> ./rpy/rinterface/_rinterface.c:470: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_WriteConsole’:
>> ./rpy/rinterface/_rinterface.c:328: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ShowMessage’:
>> ./rpy/rinterface/_rinterface.c:402: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_CleanUp’:
>> ./rpy/rinterface/_rinterface.c:896: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ChooseFile’:
>> ./rpy/rinterface/_rinterface.c:646: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> In file included from 
>> /Library/Frameworks/R.framework/Resources/include/R.h:34,
>>                  from ./rpy/rinterface/_rinterface.c:61:
>> /Library/Frameworks/R.framework/Resources/include/Rconfig.h:5:25: error: 
>> ppc/Rconfig.h: No such file or directory
>> In file included from ./rpy/rinterface/_rinterface.c:62:
>> /Library/Frameworks/R.framework/Resources/include/Rversion.h:5:26: error: 
>> ppc/Rversion.h: No such file or directory
>> In file included from ./rpy/rinterface/_rinterface.c:63:
>> /Library/Frameworks/R.framework/Resources/include/Rinternals.h:657: warning: 
>> function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:79:
>> /Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26: 
>> warning: function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:110:
>> ./rpy/rinterface/r_utils.h:13: error: ‘R_MAJOR’ undeclared here (not in a 
>> function)
>> ./rpy/rinterface/r_utils.h:13: error: ‘R_MINOR’ undeclared here (not in a 
>> function)
>> ./rpy/rinterface/r_utils.h:13: error: ‘R_STATUS’ undeclared here (not in a 
>> function)
>> ./rpy/rinterface/r_utils.h:14: error: ‘R_SVN_REVISION’ undeclared here (not 
>> in a function)
>> In file included from ./rpy/rinterface/_rinterface.c:132:
>> ./rpy/rinterface/sequence.c: In function ‘VectorSexp_ass_slice’:
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘sexp_item’
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘tmp’
>> ./rpy/rinterface/sequence.c:541: warning: unused variable ‘vs’
>> ./rpy/rinterface/sequence.c:478: warning: unused variable ‘self_typeof’
>> In file included from ./rpy/rinterface/_rinterface.c:63:
>> /Library/Frameworks/R.framework/Resources/include/Rinternals.h:657: warning: 
>> function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:79:
>> /Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26: 
>> warning: function declaration isn’t a prototype
>> In file included from ./rpy/rinterface/_rinterface.c:132:
>> ./rpy/rinterface/sequence.c: In function ‘VectorSexp_ass_slice’:
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘sexp_item’
>> ./rpy/rinterface/sequence.c:542: warning: unused variable ‘tmp’
>> ./rpy/rinterface/sequence.c:541: warning: unused variable ‘vs’
>> ./rpy/rinterface/sequence.c:478: warning: unused variable ‘self_typeof’
>> ./rpy/rinterface/_rinterface.c: At top level:
>> ./rpy/rinterface/sequence.c:2173: warning: ‘ComplexVectorSexp_AsSexp’ 
>> defined but not used
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ShowFiles’:
>> ./rpy/rinterface/_rinterface.c:748: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_FlushConsole’:
>> ./rpy/rinterface/_rinterface.c:602: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ReadConsole’:
>> ./rpy/rinterface/_rinterface.c:470: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_WriteConsole’:
>> ./rpy/rinterface/_rinterface.c:328: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ShowMessage’:
>> ./rpy/rinterface/_rinterface.c:402: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_CleanUp’:
>> ./rpy/rinterface/_rinterface.c:896: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> ./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_ChooseFile’:
>> ./rpy/rinterface/_rinterface.c:646: warning: ‘gstate’ may be used 
>> uninitialized in this function
>> lipo: can't open input file: 
>> /var/folders/HU/HUM+PVEdFU8FgIU8u5qB+k+++TI/-Tmp-//cclnDZS2.out (No such 
>> file or directory)
>> error: Setup script exited with error: command 'gcc-4.2' failed with exit 
>> status 1
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> rpy-list mailing list
>> rpy-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/rpy-list
>> 
>> 
>> 
> 
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to