Although I don't use it myself, I think that incorporating R will be a
huge boost to SAGE, and so I have been trying to get R and rpy working
on OS X. I just managed to do it on an intel OS X machine, and since
it wasn't very easy I thought I would share my experience:
In building R from source, I ran configure with the option:
./configure --enable-R-shlib
I then set the environmental variable LD_LIBRARY_PATH to the bin
folder in the R installation.
I had more problems with rpy. Besides having gfortran installed, the
crucial step seemed to be fixing a path problem: when first running
"sudo python setup.py install" I had an error:
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/
MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib referenced from: /
Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/R.framework/
Resources/lib/libR.dylib (checking for undefined symbols may be
affected) (No such file or directory, errno = 2)
So I created the folder(s) /Developer/SDKs/MacOSX10.4u.sdk/usr/local/
lib/ and copied the library in question over from /Developer/SDKs/
MacOSX10.4u.sdk/usr//lib/, where it did exist.
I still get a warning:
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/
MacOSX10.4u.sdk/usr/local/lib/libgfortran.2.dylib referenced from: /
Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/R.framework/
Resources/lib/libR.dylib (checking for undefined symbols may be
affected) (No such file or directory, errno = 2)
but at least most things seem to work.
-Marshall Hampton
> Hi,
>
> Although I don't use it myself, I think that incorporating R will be a
> huge boost to SAGE, and so I have been trying to get R and rpy working
> on OS X.
I don't doubt that incorporating R would be nice, but AFAICT the
advantage to using R is its very nice slicing syntax. Providing such
flexible operators in Python is probably possible, so I'd like to
suggest that first efforts be focused on slicing.
Nick
-Marshall Hampton
On May 3, 12:51 pm, Nick Alexander <ncale...@math.uci.edu> wrote: