Tuesday, 12 January 2021

dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib

I am trying to solve a dynamic programming problem using GEKKO. The gekko object uses a solve method which references an executable /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/gekko/bin/apm_mac

This executable in turns wants to access a library /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib and apparently it's not able to find the library, thus the error:

Error: dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/gekko/bin/apm_mac
Reason: image not found 

When I go to the path: /usr/local/opt/, there is no gcc folder there which explains the error. But how should I fix this?



from dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0.dylib

No comments:

Post a Comment