Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to install R via Homebrew

Tags:

macos

r

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!

like image 719
Bryan Saxon Avatar asked May 23 '15 02:05

Bryan Saxon


1 Answers

Justin Licata was correct.

The issue was resolved by running:

brew update && brew upgrade
brew reinstall gcc
brew reinstall r
like image 56
Bryan Saxon Avatar answered Nov 08 '22 18:11

Bryan Saxon