8

When I attempt to install R via Homebrew (to use for Vim-R-plugin):

brew install gcc
brew install r

Then then try to run R:

R

I get the following error:

dyld: Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/r/3.2.0_1/R.framework/Versions/3.2/Resources/lib/libR.dylib
  Reason: image not found
zsh: trace trap  R

I have searched for the error and have tried several "solutions" with little luck. Any help would be much appreciated!

lcd047
  • 5,731
  • 2
  • 28
  • 38
Bryan Saxon
  • 653
  • 1
  • 7
  • 21
  • 1
    Potential solution from another SO question? Upgrading your homebrew build. http://stackoverflow.com/a/22631734/2456549 – Justin May 26 '15 at 13:28

1 Answers1

11

Justin Licata was correct.

The issue was resolved by running:

brew update && brew upgrade
brew reinstall gcc
brew reinstall r
Community
  • 1
  • 1
Bryan Saxon
  • 653
  • 1
  • 7
  • 21
  • I had to use a couple brew link --overwrite calls (as indicated by the warnings from the commands you paste), but otherwise this worked great. Thanks! – Vincent Jul 02 '15 at 12:52