Hi,

there are rumors that "Django seems to be working with rpy2 on linux" so I 
tried to install rpy2-2.0.0a3 and also the revision 647 of rpy_nextgen.

Debian testing with R 2.7.1-1+lenny1 and python 2.5.2-2.

With both rpy versions I got similar errors of not finding some header files. 
I pasted the output of 'python setup.py install' in rpy_nextgen below.

Any help (compiling rpy2 or generally using rpy within django) is much 
appreciated.

cheers,
  robert 


[EMAIL PROTECTED]:/usr/local/src/rpy_nextgen$ python setup.py install
running install
running build
running build_py
running build_ext
building 'rpy2.rinterface.rinterface' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1 
-DRIF_HAS_RSIGHAND=1 -I/usr/lib/R/include -Irpy/rinterface 
-I/usr/include/python2.5 -c 
rpy/rinterface/array.c -o build/temp.linux-i686-2.5/rpy/rinterface/array.o
rpy/rinterface/array.c:5:22: error: Rdefines.h: No such file or directory
rpy/rinterface/array.c:6:24: error: Rinternals.h: No such file or directory
In file included from rpy/rinterface/array.c:7:
rpy/rinterface/rinterface.h:5:15: error: R.h: No such file or directory
In file included from rpy/rinterface/array.c:7:
rpy/rinterface/rinterface.h:28: error: expected specifier-qualifier-list 
before 'SEXP'
rpy/rinterface/array.c:30: error: expected ')' before 'sexp'
rpy/rinterface/array.c:45: error: expected ')' before 'sexp'
rpy/rinterface/array.c:59: error: expected ')' before 'sexp'
rpy/rinterface/array.c:72: error: expected ')' before 'sexp'
rpy/rinterface/array.c:81: error: expected ')' before 'sexp'
rpy/rinterface/array.c: In function 'array_struct_get':
rpy/rinterface/array.c:105: error: 'SEXP' undeclared (first use in this 
function)
rpy/rinterface/array.c:105: error: (Each undeclared identifier is reported 
only once
rpy/rinterface/array.c:105: error: for each function it appears in.)
rpy/rinterface/array.c:105: error: expected ';' before 'sexp'
rpy/rinterface/array.c:106: error: 'sexp' undeclared (first use in this 
function)
rpy/rinterface/array.c:111: warning: implicit declaration of 
function 'sexp_typekind'
rpy/rinterface/array.c:120: warning: implicit declaration of 
function 'sexp_rank'
rpy/rinterface/array.c:125: warning: implicit declaration of 
function 'sexp_itemsize'
rpy/rinterface/array.c:128: warning: implicit declaration of 
function 'sexp_shape'
rpy/rinterface/array.c:136: warning: implicit declaration of 
function 'sexp_typepointer'
rpy/rinterface/array.c:136: warning: assignment makes pointer from integer 
without a cast
error: command 'gcc' failed with exit status 1

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to