Compiles fine, with the usual caveats. gcc on OS X does not know the -shared flag, so that generates warnings. And then there are many multiple defined symbols, which prevent the final link of rpy.so. Most of them occur in different Rpy files, but setenv is both in setenv.so and in libSystem.dylib. The correct solution is to turn some definitions into mere declarations by using extern, but the standard hack is to add -Xlinker -m to the link. This turns all multiple definitions errors into warnings, and it uses the first definition found by ld. Otherwise Rpy works fine, from Python Interactive, from IDLE, from PyShell and PyCrust, and so on, using both the Quartz and X11 graphics devices. http://gifi.stat.ucla.edu/pub A large package containing R-devel (with 425 packages), Rpy, MacPython (lots of add-ons too) as well as Aqua/X11 versions of Tcl/Tk, and Aqua versions of wxWindows, Qt, and GTK-OSX. Moreover there are R interfaces to X11 Tcl/Tk and GTK-OSX and Python interfaces to all the native toolkits (including Cocoa). There are also X11 and Aqua versions of GNU Emacs included. === Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://gifi.stat.ucla.edu ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au
Rpy-0.3.4 on OS X (10.3.3)
1 message · Jan de Leeuw