[R-SIG-Mac] Compiling ROracle on OSX 10.4.7/R 2.3.1
simon.urbanek at r-project.org
Tue Aug 1 16:39:26 CEST 2006
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:
> R_ARCH=/ppc R CMD INSTALL --library=~/Library/R/library/
> I get the following:
> * Installing *source* package 'ROracle' ...
> checking for gcc... gcc
^^ 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.
> R CMD COMPILE RS-DBI.c
> gcc-4.0 -arch i386 -I/Library/Frameworks/R.framework/Resources/
> include -I/Library/Frameworks/R.framework/Resources/include/i386
^^ 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
line 31, change
R CMD SHLIB worked, but incidentally ROracle uses R CMD COMPILE -> R
CMD SHLIB and thus failed.
More information about the R-SIG-Mac