legacy-linuxbrew icon indicating copy to clipboard operation
legacy-linuxbrew copied to clipboard

r: Building R without Xquartz

Open peterdfields opened this issue 12 years ago • 7 comments

Is there a way of bypassing the requirement of Xquartz to build R with linuxbrew?

peterdfields avatar Dec 06 '13 09:12 peterdfields

Fixing the X11 dependency on Linux is on my radar, but I haven't got around to it. The workaround for now is to brew edit r and delete or comment out the line

depends_on :x11

sjackman avatar Dec 07 '13 08:12 sjackman

modifying the depends_on :x11 got me much much further.

The error I'm receiving has me a bit perplexed. Here I'm running

brew install r --with-openblas

I get the following error

Error: File exists - /home/peter/.linuxbrew/Cellar/r/3.0.2/R.framework/Resources/bin/R or /home/peter/.linuxbrew/Cellar/r/3.0.2/bin/R

The gist of the 03.make file is at

https://gist.github.com/crd1859/7848684

peterdfields avatar Dec 07 '13 21:12 peterdfields

I should have noted that those files do not exist either before or after the attempted brew install r --with-openblas

peterdfields avatar Dec 08 '13 13:12 peterdfields

+1

max-mykhailenko avatar Mar 14 '14 07:03 max-mykhailenko

Try brew install --without-x11 r. Fixed by https://github.com/Homebrew/homebrew-science/commit/8742b2be770e8c25afec054976a5d4c126cb93a9

sjackman avatar Aug 12 '14 00:08 sjackman

Hello sjackman, this do not work. I got the error message:

XY-MacBook-Pro:~ XY$ brew install --without-x11 r
==> Installing r from homebrew/homebrew-science
cairo: Unsatisfied dependency: XQuartz 0.0.0
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.

2ori avatar Dec 23 '14 18:12 2ori

brew update
brew options r
brew install --without-x11 r

sjackman avatar Dec 23 '14 18:12 sjackman