From: Warnes, G. R <gre...@gr...> - 2004-07-01 19:26:59
|
Hi Craig, It looks like you need to make sure that the python extension .h files are in the C search path. Try adding an appropriate flag to the compiler flags specified in the OSX section of the setup.py file. if you get it to work, let me know and I can add the necessary stuff to the setup.py file. -Greg > -----Original Message----- > From: rpy...@li... > [mailto:rpy...@li...]On Behalf Of > Craig Amundsen > Sent: Tuesday, June 22, 2004 7:12 PM > To: rpy...@li... > Subject: [Rpy] rpy on OSX > > > Hi - > > I'm trying to build rpy on a reasonably vanilla OSX (10.3.4) system. > I've installed the 10.3 Python extras and used PackMan to install > Numeric. > > I built R 1.9.0 using the Mac specific config options > (--with-blas='-framework vecLib' --with-lapack --with-aqua) and > --enable-R-shlib as the rpy docs require. > > I have RHOME pointing to /Library/Frameworks/R.framework/Resources/bin > I have a link in /usr/local/bin R@ -> > /Library/Frameworks/R.framework/Resources/bin/R > and on in /usr/local/lib libR.dylib@ -> > /Library/Frameworks/R.framework/Resources/bin/libR.dylib > > When I try to build rpy (python setup.py build) I get the following > errors: > > building '_rpy' extension > gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp > -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DPRE_2_2 > -DR_HOME="/Library/Frameworks/R.framework/Resources" -DWITH_NUMERIC > -I/Library/Frameworks/R.framework/Resources/include -Isrc > -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ > python2.3 -c src/rpymodule.c -o > build/temp.darwin-7.4.0-Power_Macintosh-2.3/src/rpymodule.o > In file included from src/rpymodule.c:24: > src/RPy.h:39:33: Numeric/arrayobject.h: No such file or directory > src/rpymodule.c: In function `to_Rarray': > src/rpymodule.c:247: error: `PyArrayObject' undeclared (first use in > this function) > src/rpymodule.c:247: error: (Each undeclared identifier is reported > only once > src/rpymodule.c:247: error: for each function it appears in.) > src/rpymodule.c:247: error: `obj' undeclared (first use in this > function) > > It looks like I'm not finding Numeric during the compilation. I > installed Numeric with PackMan using the source, is there something > else I need to do for this work? > > TIA, > -Craig > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > rpy-list mailing list > rpy...@li... > https://lists.sourceforge.net/lists/listinfo/rpy-list > LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. |