Sounds like a plan. Let me try this out
Hi everyone,
My R was working just fine on my command line until I tried to upgrade it with brew so I can install an R package that wasnt getting installed. After I upgraded r using brew upgrade r
I encountered this error when I tried to call r again after the upgrade and I am not sure whats going on or how to return it back to how it was. will appreciate your help.
$ r
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib Referenced from: /usr/local/Cellar/r/3.4.3/lib/libR.dylib Reason: image not found Trace/BPT trap: 5
1 answer
This looks like a Mac/OSX specific issue. The upgrade seems to have broken some existing packages, and often the best thing to do is to re-install from scratch. See these similar threads:
https://stackoverflow.com/questions/12323252/brew-doctor-dyld-library-not-loaded-error-no-available-formula-for-zlib
https://stackoverflow.com/questions/38467653/r-is-broken-with-dyld-library-not-loaded-rpath-libpcre-1-dylib
Try a complete uninstall of R, and then re-install. You may want to peek at your package install directory and make a list of packages you had to facilitate re-installing them (/usr/local/Cellar/r/<version>/R.framework/Resources/library, according to a comment from this since you can't load R anymore, replace <version> with the version you had.)
Log in to answer this question.
Hello jaqx008!
We believe that this post does not fit the main topic of this site.
Not a bioinformatics question, please search StackOverflow
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!