Further to Simon's instructions, point two, rerunning javareconf: if you want to
reconfigure Java in R to produce universal binaries, then specify the --arch=
switch for R.  I ran the command line once with --arch=i386 and once with
--arch=x86_64 to produce a single version of rJava for both architectures. 


Richard

On December 1, 2010 at 12:00 PM [email protected] wrote:

> Date: Tue, 30 Nov 2010 10:01:26 -0500
> From: Simon Urbanek <[email protected]>
> To: "[email protected] List" <[email protected]>,
>         "[email protected] List"
>         <[email protected]>
> Subject: [R-SIG-Mac] Java on Mac OS X 10.6.5 (Snow Leopard)
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> Apparently the latest update to Snow Leopard (10.6.5) removes necessary header
> files from the system Java installation. They are now only available in the
> corresponding Xcode SDKs. What does that mean?
>
>
> * If you are using binaries from CRAN, there is nothing to worry about and you
> can ignore this e-mail.
>
>
>
> * If you are compiling packages against the JavaVM from sources (such as
> rJava), you will need to point the compilers to the new location of the
> headers.
>
> For example if you want to use the 10.6 SDK you'll have to use:
> JAVA_CPPFLAGS=-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaV
> M.framework/Headers
>
> You have two options: you can re-run javareconf with JAVA_CPPFLAGS specified,
> i.e. (the command is all on one line!):
> JAVA_CPPFLAGS=-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaV
> M.framework/Headers R CMD javareconf
>
> this will configure R with the correct flags. Alternatively, you can set
> JAVA_CPPFLAGS before installing the packages in question if you don't want to
> touch the R Java configuration.
>
> Note: the above assumes you installed Xcode in the default location
> "/Developer" - adjust accordingly if you used a custom location.
>
>
> Cheers,
> Simon
>
>
>
> ------------------------------
>
> _______________________________________________
> R-SIG-Mac mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
> End of R-SIG-Mac Digest, Vol 94, Issue 1
> ****************************************
>


Richard R. Liu
[email protected]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to