dyld: Library not loaded: /usr/local/lib/libmpfr.4.dylib

Elizabeth Haker picture Elizabeth Haker · Mar 23, 2018 · Viewed 9.8k times · Source

When I run "make" on a project I get this error:

dyld: Library not loaded: /usr/local/lib/libmpfr.4.dylib 
Referenced from: /Users/Petrov/Downloads/mips/bin/../libexec/gcc/mipsel-elf/4.8.1/cc1
  Reason: image not found

There is no libmpfr.4.dylib file in /usr/local/lib, but there is libmpfr.6.dylib. I have mpfr 4.0.1 installed. I have tried reinstalling Xcode and mpfr already.

Answer

Utpal Kumar picture Utpal Kumar · May 19, 2018

I had similar problem in Mac. I fixed it by upgrading the "gawk" using brew

brew upgrade gawk