Question: (Closed) Error while running R from command line.
0
gravatar for jaqx008
9 months ago by
jaqx00860
jaqx00860 wrote:

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

ADD COMMENTlink modified 9 months ago by manuel.belmadani1.1k • written 9 months ago by jaqx00860

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!

ADD REPLYlink written 9 months ago by RamRS24k
0
gravatar for manuel.belmadani
9 months ago by
Canada
manuel.belmadani1.1k wrote:

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.)

ADD COMMENTlink modified 9 months ago • written 9 months ago by manuel.belmadani1.1k

Sounds like a plan. Let me try this out

ADD REPLYlink written 9 months ago by jaqx00860
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1679 users visited in the last hour