[Pythonmac-SIG] building rpy

Teemu Rinne Teemu.Rinne at helsinki.fi
Sun Jul 10 20:17:39 CEST 2005



Thanks! '-L/Library/Frameworks/R.framework/Resources/lib' worked ok. 

--
Teemu

--On Sunday, July 10, 2005 4:27 PM +0200 Piet van Oostrum <piet at cs.uu.nl>
wrote:

>>>>>> Teemu Rinne <Teemu.Rinne at helsinki.fi> (TR) wrote:
> 
>> TR> Hi,
>> TR> Based on google searches, it seems that rpy (interface for R) should
>> build TR> ok on 10.3.9... how to do it? Is there a binary installer
>> available TR> (compatible with pythonmac.org/packages/)? 
> 
>> TR> Building for R version 2.1.1 ...
>> TR> running build
>> TR> running build_py
>> TR> running build_ext
>> TR> building '_rpy' extension
>> TR> gcc -Wl,-F. -Wl,-F. -bundle -framework Python
>> TR> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/rpymodule.o
>> TR> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/R_eval.o
>> TR> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/io.o
>> TR> -L/Library/Frameworks/R.framework/Resources/Frameworks -lR -o
>> TR> build/lib.darwin-7.9.0-Power_Macintosh-2.3/_rpy.so
>> TR> ld: warning -L: directory name
>> TR> (/Library/Frameworks/R.framework/Resources/Frameworks) does not exist
> 
> I tried this also. It appears that the required lib is in
> /Library/Frameworks/R.framework/Resources/lib rather than
> /Library/Frameworks/R.framework/Resources/Frameworks.
> You can either make a symbolic link from lib to Frameworks or issue the
> following command (all in one line):
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/co
> nfig/PantherPythonFix/run-gcc -Wl,-F. -Wl,-F. -bundle -undefined
> dynamic_lookup
> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/rpymodule.o
> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/R_eval.o
> build/temp.darwin-7.9.0-Power_Macintosh-2.3/src/io.o
> -L/Library/Frameworks/R.framework/Resources/lib -lR -o
> build/lib.darwin-7.9.0-Power_Macintosh-2.3/_rpy.so 
> 
> and redo the python setup.py install afterwards.
> 
> -- 
> Piet van Oostrum <piet at cs.uu.nl>
> URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
> Private email: piet at vanoostrum.org




More information about the Pythonmac-SIG mailing list