[R-SIG-Mac] Change Rscript to 64-bit
Alton Ing
alton at altoning.com
Sat Feb 23 11:38:38 CET 2013
To get Rscript running in 64-bit mode on your 64-bit Mac OS X (Mountain Lion):
sudo ln -s /Library/Frameworks/R.framework/Resources/bin/Rscript
/usr/bin/Rscript32
sudo rm /usr/bin/Rscript
sudo echo '/Library/Frameworks/R.framework/Resources/bin/Rscript
--arch=x86_64 "$@"' > /usr/local/bin/Rscript64
sudo cp /usr/local/bin/Rscript64 /usr/bin/Rscript
sudo chown root:admin /usr/bin/Rscript
sudo chmod 775 /usr/bin/Rscript
If your old scripts encounter problems try using /usr/bin/Rscript32
instead. Otherwise, you can revert /usr/bin/Rscript back using:
sudo rm /usr/bin/Rscript
sudo ln -s /Library/Frameworks/R.framework/Resources/bin/Rscript
/usr/bin/Rscript
-Alton
On Fri, Feb 22, 2013 at 10:57 PM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
> On 23/02/2013 04:32, Alton Ing wrote:
>>
>> How can we change Rscript to execute in 64-bit?
>>
>> The following script prints "i386-apple-darwin9.8.0/i386 (32-bit)" :
>>
>> #!/usr/bin/env Rscript
>> sessionInfo()$platform
>>
>> I want to run RHadoop (rmr2) locally on Mac OS X 10.8.2 (Mountain
>> Lion) but it only works with Rscript in 64-bit mode.
>
>
> Where is that one from (we can't tell?)
>
> On a CRAN installation
>
> /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/Rscript
>
> is 64-bit. And you can always run "Rscript --arch=x86_64" (not using env,
> though).
>
>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list