How to fix NBO6 installation on MacOS X Yosemite

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)
    • cd /usr/local/gfortran/lib
    • 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.

    1. Download BLAST
    2. Download LAPACK
    3. Untarboth
    4. cd BLAS/
    5. make
    6. mv blas_LINUX.a libblas.a
    7. sudo cp libblas.a /usr/local/lib/
    8. cd ../lapack-3.5.0/
    9. make blaslib
    10. make
    11. cd ./lapacke
    12. make
    13. cd ../
    14. sudo cp lib*.a /usr/local/lib/

Install NBO as per original NBO instructions you got in the package.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s