I got a new Mac and was surprised that the most of the libraries required to run NBO program were missing. As a result, I was constantly getting this error:
dyld: Library not loaded: /usr/local/lib/libquadmath.0.dylib
Here is a quick fix:
First of all, you need to activate
su access type in terminal:
To deactivate it later use:
Then you need to install FORTRAN libraries, what are missing from the default MAC OS installation.
To install FORTRAN and copy the library to an appropriate folder:
- Get gfortran (clickable)
- Install (you can build it from the source or use MacPorts. click on the link to see official instructions)
sudo cp libquadmath.0.dylib /usr/local/lib/
For future, I also suggest installing BLAST and LAPACK for all other programs as well. They were missing too.
Install NBO as per original NBO instructions you got in the package.