Error trying to install R via Homebrew

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

brew install gcc brew install r 

Then try running 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 searched for a mistake and tried several β€œsolutions” with little luck. Any help would be greatly appreciated!

+7
r macos
source share
1 answer

Justin Licata was right.

The problem was solved at startup:

 brew update && brew upgrade brew reinstall gcc brew reinstall r 
+10
source share

All Articles