Compiling Source Packages on R 2.15.x / Mac OS 10.5.x

August 31, 2012

(This article was first published on dylan's blog, and kindly contributed to R-bloggers)

For some reason R is not happy with its 64-bit cousin when installing source packages:

* installing *source* package ‘XMLSchema’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x86_64
/Library/Frameworks/R.framework/Resources/bin/R: line 259: /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/R: Bad CPU type in executable
/Library/Frameworks/R.framework/Resources/bin/R: line 259: /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/R: Unknown error: 0
ERROR: loading failed for ‘x86_64’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/XMLSchema’

Quick hack to get things moving along: throw out the 64-bit binary, located at:

rm -rf /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/

read more

To leave a comment for the author, please follow the link and comment on their blog: dylan's blog. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)