randy3k / homebrew-r

Homebrew formulas for R and related tools
25 stars 4 forks source link

`r-x11` needs to be re-bottled for gcc8 #49

Closed joe4dev closed 6 years ago

joe4dev commented 6 years ago

Homebrew currently uses gcc8 and therefore we get the following error message when trying to run R:

dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
  Referenced from: /usr/local/Cellar/r-x11/3.4.4_1/lib/libR.dylib
  Reason: image not found

Thus, we need to re-bottle r-x11 (and for some reason brew install r-x11 --build-from-source failed with Error: No available formula with the name "randy3k/r/cairo-x11" locally for me)

randy3k commented 6 years ago

https://github.com/randy3k/homebrew-r/pull/48

randy3k commented 6 years ago

did you pull the latest formula? cairo-x11 is longer needed.

joe4dev commented 6 years ago

Simultaneous fix 😂 Great work, thank you 👏

Confirming that bottled works again.

joe4dev commented 6 years ago

brew update && brew install r-x11 --build-from-source still fails locally for me (it's not really needed but I am still curious whether I miss sth here?):

➜  ~ brew install r-x11 --build-from-source
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (randy3k/r).
==> Updated Formulae
randy3k/r/rstudio-server

==> Installing r-x11 from randy3k/r
==> Downloading https://cran.rstudio.com/src/base/R-3/R-3.5.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/r-x11/3.5.0 --enable-memory-profiling
==> make
==> make install
==> make
==> make install
Error: No available formula with the name "randy3k/r/cairo-x11"
==> Searching for a previously deleted formula (in the last month)...
Warning: randy3k/r is shallow clone. To get complete history run:
  git -C "$(brew --repo randy3k/r)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
➜  ~ brew update
Already up-to-date.
randy3k commented 6 years ago

It's odd. cairo-x11 is not needed anymore. There is no reference of cairo-x11 in r-x11.

joe4dev commented 6 years ago

Yes, I agree that no such dependency is present (also checked locally with brew edit). Also purging the cache didn't help. Maybe some weird issue with my setup. Thanks anyways.