Bryan Saxon
Bryan Saxon

Reputation: 663

Error when trying to install R via Homebrew

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!

Upvotes: 8

Views: 2316

Answers (1)

Bryan Saxon
Bryan Saxon

Reputation: 663

Justin Licata was correct.

The issue was resolved by running:

brew update && brew upgrade
brew reinstall gcc
brew reinstall r

Upvotes: 11

Related Questions