On 2011-10-19 10:10, Johannes Radinger wrote:
> Hello...
>
> For your information: I am working with
> R version 2.13.1 (2011-07-08)
>
> Anyway I found a hint in the internet at
> (http://code.google.com/p/pyrit/issues/detail?id=337)
> and tried to build and install with:
>
> env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build install

Thanks. I'll try to see if I can get setup.py to do that automagically.

>
>
> It seems that works! I tried the mentioned tests and here the output:
>
> (...)
>>>> import unittest
>>>> tr = unittest.TextTestRunner(verbosity = 1)
>>>> suite = rpy2.tests.suite()
>>>> tr.run(suite)
> ......................................................................................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 326 tests in 4.117s
>
> OK
> <unittest._TextTestResult run=326 errors=0 failures=0>
>
>
>
> So is now everything correctly installed? And will it work now?

It seems so.
Let us know if this turns out not to be the case.


L.

>
> Thank you very much!
>
> /Johannes
>
> -------- Original-Nachricht --------
>> Datum: Wed, 19 Oct 2011 09:21:13 +0200
>> Von: Laurent Gautier<lgaut...@gmail.com>
>> An: Johannes Radinger<jradin...@gmx.at>
>> CC: "RPy help, support and design discussion 
>> list"<rpy-list@lists.sourceforge.net>
>> Betreff: Re: [Rpy] fail install on Mac OS X 10.6.8
>> With a new version of gcc, the outcome should at least a bit different
>> (even
>> if on the version number in the console output).
>> Did you mention the version of R you are trying to build against ?
>>   On Oct 19, 2011 6:10 AM, "Johannes Radinger"<jradin...@gmx.at>  wrote:
>>
>>> Hello again,
>>>
>>> I checked my GCC version on my Mac again and it is:
>>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 And that
>>> is the most up tp date version for my operating system.
>>>
>>> I tried also to install rpy2 via easy_install but encounter
>>> the same error.
>>>
>>> So what to do?
>>> I found following page. Maybe that is a hint to the solution,
>>> but I am not sure what I should do in my case:
>>>
>>>
>> http://stackoverflow.com/questions/2211387/python-build-problem-on-mac-os-10-6-snow-leopard
>>> /johannes
>>>
>>>
>>>
>>>
>>> Am 18.10.2011 um 23:01 schrieb Laurent Gautier:
>>>
>>>   Wouldn't the following line provide a hint about where the problem is ?
>>>
>>> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
>>> Intel with Mac OS X Deployment Target<  10.4 is invalid.
>>>
>>>
>>> Wasn't GCC4.0 the default compiler on Mac OS X 10.4 ?
>>>
>>>
>>> On 2011-10-18 22:34, Johannes Radinger wrote:
>>>
>>> Hello,
>>>
>>>   I am very new to rpy and I just wanted
>>> to install the rpy2 package on my Mac OS X 10.6.8
>>> with the python setup.py build install but I fail.
>>>
>>>   You can see the error-message below!
>>> It seems that the gcc-4.0 failed with exit status 1, for
>>> whatever that means. As I am still very new
>>> to python and compiling etc. I don't know how to
>>> handle this error... What should I do? What
>>> should I check?
>>>
>>>   Thank you very much
>>>
>>>   /Johannes
>>>
>>>   noname:rpy2-2.2.1 admin$ python setup.py build install
>>> running build
>>> running build_py
>>> running build_ext
>>> 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',)
>>> building 'rpy2.rinterface._rinterface' extension
>>> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386
>> -g
>>> -O2 -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1
>>> -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -I./rpy/rinterface
>>> -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
>>> -I/Library/Frameworks/R.framework/Resources/include
>>> -I/Library/Frameworks/R.framework/Resources/include/x86_64 -c
>>> ./rpy/rinterface/_rinterface.c -o
>>> build/temp.macosx-10.3-fat-2.6/./rpy/rinterface/_rinterface.o
>>> In file included from /usr/include/architecture/i386/math.h:626,
>>>                   from /usr/include/math.h:28,
>>>                   from
>>>
>> /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
>>>                   from
>>>
>> /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
>>>                   from ./rpy/rinterface/_rinterface.c:55:
>>> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for
>>> Intel with Mac OS X Deployment Target<  10.4 is invalid.
>>> 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:100:
>>> ./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)
>>> lipo: can't figure out the architecture type of: /var/tmp//ccPk52r1.out
>>> error: command 'gcc-4.0' failed with exit status 1
>>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------------
>>> All the data continuously generated in your IT infrastructure contains a
>>> definitive record of customers, application performance, security
>>> threats, fraudulent activity and more. Splunk takes this data and makes
>>> sense of it. Business sense. IT sense. Common
>> sense.http://p.sf.net/sfu/splunk-d2d-oct
>>>
>>>
>>> _______________________________________________
>>> rpy-list mailing
>> listrpy-list@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/rpy-list
>>>
>>>
>>>


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to