Hunting for homegrown can't find gfortran in mavericks

I set the octave and gcc through the homebrew. No installation returned any errors, but when I try to start an octave, I get this error:

dyld: Library not loaded: /usr/local/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib
  Referenced from: /usr/local/lib/libqrupdate.1.dylib
  Reason: image not found
Trace/BPT trap: 5

I did brew update, update and all that. brew A doctor only returns messages about ownership of human directories that I think are unrelated

Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
    /usr/local/share/man/de
    /usr/local/share/man/de/man1

Any ideas? Other posts I've seen suggested unleashing / reliving gcc, but that doesn't change anything for me.

+4
source share
3 answers

brew reinstall qrupdate

After updating gcc 4.9.1, the path has changed.

+3
source

I did not get fortran on OSX mavericks until I did

brew gcc49 --enable-fortran

/usr/local/bin/gfortran -4.9.

sudo ln -s/usr/local/bin/gfortran-4.9/usr/local/bin/gfortran

+2

After a long search for a solution, this worked for me:

brew install gcc49 --with-fortran

I found that this installed gfortran49 as "gfortran-4.9" and "gfortran" was tied to my previous installation of gfortran48. So I went back and deleted gfortran48 as such:

brew remove gfortran

Then I reinstalled gcc49:

brew reinstall gcc49 --with-fortran

It seems to have worked.

0
source

Source: https://habr.com/ru/post/1547278/


All Articles