This is a very frustrating error that I've had on numerous occasions with a myriad of different packages, I've never really known what I've done to resolve it however I've found that using python 2.6 and gcc 4.0 seems to be much better for installing python packages, you can change the symlink /bin/gcc to point to gcc-4.0 (if you don't have it you can get it from the developer tools package).


admiral.da...@gmail.com wrote:
Hi,

I'm trying to install rpy2 on a Mac running Mac OS 10.6.4. The Mac has R version 2.11.1, Python 2.6.2, and gcc version 4.2.1.

When I try to install rpy2 (version 2.1.3), I get the following error message:

>python setup.py install
running install
running build
running build_py
running build_ext
building 'rpy2.rinterface.rinterface' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -Irpy/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 -F/Library/Frameworks/R.framework/.. -framework R -L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRlapack -L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRblas In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4, from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from rpy/rinterface/rinterface.c:55:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory In file included from /Library/Frameworks/R.framework/Resources/include/R.h:31,
from rpy/rinterface/rinterface.c:61:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4, from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from rpy/rinterface/rinterface.c:55:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory In file included from /Library/Frameworks/R.framework/Resources/include/R.h:31,
from rpy/rinterface/rinterface.c:61:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory lipo: can't figure out the architecture type of: /var/folders/rB/rBpMjOcPHy4U9XEiefEwiU+++TM/-Tmp-//cc7cmLKe.out
error: command 'gcc' failed with exit status 1

After some googling, I see that others have gotten the same error, but I can't figure out whether it's my version of gcc, Python, or R that is causing the problem (the problem seemed to happen to other people with a variety of combinations of versions). Does anyone have any ideas of what I can try?

Thanks so much in advance!

-David
------------------------------------------------------------------------

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
------------------------------------------------------------------------

_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to