I am using the newest Macbook Air with M1 chip. I am trying to execute a file from a command line and I am receiving this error message
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libgfortran.5.dylib Referenced from: /Volumes/JP_External/DOCK/dock6/bin/sphgen Reason: image not found zsh: abort sphgen -i INSPH -o OUTSPH
I tried to reinstall gcc using homebrew packages and try to follow the solution from this (dyld: Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib Reason: image not found)
When I tried to locate my gfortran, I get the following error message.
WARNING: the locate database (/var/db/locate.database) does not exist. To create the database, run the following command:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
Please be aware that the database can take some time to generate; once the database has been created, this message will no longer appear
Any help is greatly appreciated!