[R-SIG-Mac] Compiling ROracle on OSX 10.4.7/R 2.3.1
Simon Urbanek
simon.urbanek at r-project.org
Tue Aug 1 16:39:26 CEST 2006
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:
> R_ARCH=/ppc R CMD INSTALL --library=~/Library/R/library/
> ROracle_0.5-7.tar.gz
>
> 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
/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
More information about the R-SIG-Mac
mailing list