Skip to content

Compiling ROracle on OSX 10.4.7/R 2.3.1

1 message · Simon Urbanek

#
Thanks, Alexander.
This seems to be a combination of a bug in R and a bug in ROracle:
On Aug 1, 2006, at 8:50 AM, Alexander Ploner wrote:

            
^^ This is already wrong - I suspect that ROracle configure script  
doesn't respect settings from R. It should read 'gcc-4.0 -arch ppc'  
as it does below. I would suggest contacting the maintainer, because  
the configure script doesn't fetch vital flags like compiler from R  
and yet it attempts to use R CMD, thus entirely different compilers  
may be used at configure and build time.
^^ this is a bug in R CMD COMPILE. It is now fixed in R-devel and R- 
patched, but you can fix your installed R simply by editing
/Library/Frameworks/R.framework/Resources/bin/COMPILE
line 31, change
makefiles="-f \"${R_HOME}/etc/Makeconf\""
to
makefiles="-f \"${R_HOME}/etc${R_ARCH}/Makeconf\""

R CMD SHLIB worked, but incidentally ROracle uses R CMD COMPILE -> R  
CMD SHLIB and thus failed.

Cheers,
Simon