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 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
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
sage-devel-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---
|