Hi experts,
I’m attempting to get LCModel running on macOS Sequoia 15.3.2 using an Apple M4 chip (and therefore arm64 architecture), roughly following the instructions here and here.
I’ve used brew to install what should be a Sequoia-compatible version of gfortran, via gcc:
brew install gcc
When attempting to run the M1-compatible precompiled binary on GitHub, it’s throwing the following error:
dyld[4908]: Library not loaded: @rpath/libgfortran.5.dylib
Looks like it’s trying (and failing) a few different locations attempting to load the library.
I’ve also attempted to recompile a new lcmodel binary from the source code, using the following commands (from this thread):
sed '2429d' LCModel.f > LCModel_patched.f
gfortran -c -fno-backslash -fno-f2c -ffast-math -O2 -ffpe-summary=none -Wuninitialized -std=legacy -fall-intrinsics LCModel_patched.f
gfortran LCModel_patched.o -o lcmodel
This produces an executable that looks superficially fine - right filesize, etc. - but hangs (apparently indefinitely) with no error message when I attempt to run the test data through it.
Has anyone successfully built LCModel on a comparable system?