Resolving Error "ld: library not found for -lgfortran"

Hi Jatin,

No problem....

OK, I just tested it out and I was able to get it all to work using the following configuration command:

./configure --prefix=${HOME}/local --system-arch=32bit CC=gcc-7 CXX=g++-7 FC=gfortran-7 LDFLAGS+="-read_only_relocs suppress"

Explaination:

'--system-arch=32bit'

   Due to a gfortran bug on MacOS we can only get the KIM API to compile
   in 32 bit mode...

'CC=gcc-7'
'CXX=g++-7'
'FC=gfortran-7'

   These settings tell the build system how to find the correct compilers
   you have installed on your system. In your case these are the versions
   installed via homebrew.

'LDFLAGS+="-read_only_relocs suppress"'

   This setting works-around another bug in the gfortran compiler on
   MacOS.

For everyone's reference, these things are also explained in Section F.1(h) of the INSTALL file.

Try that configure command and see if it works for you now....

Cheers,

Ryan