Am Dienstag, 2. September 2008 10:43:48 schrieben Sie:
> On Tue, 2008-09-02 at 10:21 +0200, Robert Nuske wrote:
> > 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.
>
> Did you check what are the headers claimed missing ?
according to the output I attached following headers are not found:
Rdefines.h
Rinternals.h
R.h

I found them here:
/usr/share/R/include/Rdefines.h
/usr/share/R/include/Rinternals.h
/usr/share/R/include/R.h


> >From your output they look like R's own headers, and that could mean
> >that you should check your R installation (you may have a "R-dev"
> >package missing).

I have r-base-dev installed. 
But I think its not needed, since these headers are part of of the debian 
package r-base-core. Which is probably installed with any R installation from 
debian packages, because r-base and r-recommned depend on it.

cheers,
  robert

>
> > 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



-- 
   Robert Nuske
   Department of Ecoinformatics,
   Biometrics & Forest Growth

   Buesgenweg 4
   37077 Goettingen
   GERMANY

   Phone: +49-551-39-22362
   Fax  : +49-551-39-3465

-------------------------------------------------------------------------
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