I'm not entirely comfortable in a unix shell, so when I have problems
installing stuff like this, it's usually fairly simple.  But I've poked
around a bit and haven't solved it yet, so I thought I'd ask...

I am trying to install RPy on a Mac running 10.6 (Snow Leopard).  I have
Xcode installed and am using the os x pre installed version of python (2.6 I
believe).  I have the precompiled binary of R 2.9.1, which I understand
should have been compiled with enable-R-shlib.

When I run python setup.py install, I get the following:

RHOMES= []
DEBUG= True
Setting RHOMES to  ['/Library/Frameworks/R.framework/Resources']
### Using R verion 2.9.1 installed at
/Library/Frameworks/R.framework/Resources ###
RHOME= /Library/Frameworks/R.framework/Resources
copying src/rpymodule.c -> src/rpymodule2091.c
copying src/R_eval.c -> src/R_eval2091.c
copying src/io.c -> src/io2091.c
running install
running build
running build_py
running build_ext
building '_rpy2091' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os
-Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64
-pipe -DWITH_NUMERIC=3 -DPY_ARRAY_TYPES_PREFIX=PyArray_
-DRPY_SHNAME=_rpy2091 -DINIT_RPY=init_rpy2091 -UPRE_2_2
-I/Library/Frameworks/R.framework/Resources/include -Isrc
-I/Library/Python/2.6/site-packages/numpy-1.4.0.dev7542-py2.6-macosx-10.6-universal.egg/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c src/rpymodule2091.c -o
build/temp.macosx-10.6-universal-2.6/src/rpymodule2091.o
In file included from src/RPy.h:57,
                 from src/rpymodule2091.c:51:
/Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26:
warning: function declaration isn’t a prototype
In file included from src/rpymodule2091.c:51:
src/RPy.h:77:51: error: Rdevices.h: No such file or directory
src/rpymodule2091.c:1565: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1568: warning: ‘intargfunc’ is deprecated
src/rpymodule2091.c:1568: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1569: warning: ‘intintargfunc’ is deprecated
src/rpymodule2091.c:1569: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1570: warning: initialization from incompatible pointer
type
src/rpymodule2091.c: In function ‘r_finalize’:
src/rpymodule2091.c:1782: warning: implicit declaration of function
‘Rf_KillAllDevices’
src/rpymodule2091.c:1788: warning: implicit declaration of function
‘R_CleanTempDir’
src/rpymodule2091.c:1776: warning: unused variable ‘tmpdir’
src/rpymodule2091.c:1775: warning: unused variable ‘buf’
In file included from src/RPy.h:57,
                 from src/rpymodule2091.c:51:
/Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26:
warning: function declaration isn’t a prototype
In file included from src/rpymodule2091.c:51:
src/RPy.h:77:51: error: Rdevices.h: No such file or directory
src/rpymodule2091.c:1565: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1568: warning: ‘intargfunc’ is deprecated
src/rpymodule2091.c:1568: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1569: warning: ‘intintargfunc’ is deprecated
src/rpymodule2091.c:1569: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1570: warning: initialization from incompatible pointer
type
src/rpymodule2091.c: In function ‘r_finalize’:
src/rpymodule2091.c:1782: warning: implicit declaration of function
‘Rf_KillAllDevices’
src/rpymodule2091.c:1788: warning: implicit declaration of function
‘R_CleanTempDir’
src/rpymodule2091.c:1776: warning: unused variable ‘tmpdir’
src/rpymodule2091.c:1775: warning: unused variable ‘buf’
In file included from src/rpymodule2091.c:42:
/Library/Frameworks/R.framework/Resources/include/Rversion.h:9:29: error:
x86_64/Rversion.h: No such file or directory
src/rpymodule2091.c:43:28: error: missing binary operator before token "("
In file included from
/Library/Frameworks/R.framework/Resources/include/R.h:40,
                 from src/RPy.h:51,
                 from src/rpymodule2091.c:51:
/Library/Frameworks/R.framework/Resources/include/Rconfig.h:9:28: error:
x86_64/Rconfig.h: No such file or directory
In file included from src/RPy.h:57,
                 from src/rpymodule2091.c:51:
/Library/Frameworks/R.framework/Resources/include/R_ext/Rdynload.h:26:
warning: function declaration isn’t a prototype
In file included from src/RPy.h:71,
                 from src/rpymodule2091.c:51:
src/rpy_Rinterface.h:85: warning: function declaration isn’t a prototype
src/rpy_Rinterface.h:96: warning: function declaration isn’t a prototype
src/rpy_Rinterface.h:101: warning: function declaration isn’t a prototype
src/rpy_Rinterface.h:102: warning: function declaration isn’t a prototype
src/rpy_Rinterface.h:103: warning: function declaration isn’t a prototype
In file included from src/rpymodule2091.c:51:
src/RPy.h:77:51: error: Rdevices.h: No such file or directory
src/rpymodule2091.c:1565: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1568: warning: ‘intargfunc’ is deprecated
src/rpymodule2091.c:1568: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1569: warning: ‘intintargfunc’ is deprecated
src/rpymodule2091.c:1569: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1570: warning: initialization from incompatible pointer
type
src/rpymodule2091.c:1781:28: error: missing binary operator before token "("
src/rpymodule2091.c: In function ‘r_finalize’:
src/rpymodule2091.c:1784: warning: implicit declaration of function
‘KillAllDevices’
src/rpymodule2091.c:1787:28: error: missing binary operator before token "("
lipo: can't open input file:
/var/folders/WA/WAQSKhXYF9eYDiqVddaOd++++TI/-Tmp-//ccoTLLAg.out (No such
file or directory)
error: command 'gcc-4.2' failed with exit status 1

Any ideas?

Thanks!


Joran
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to