rhdtownsend / msg

Multidimensional Spectral Grids
GNU General Public License v3.0
11 stars 3 forks source link

cfitsio install library looking in the wrong spot #3

Closed astroJeff closed 2 years ago

astroJeff commented 2 years ago

When installing msg, I bug out with the error:

ld: warning: directory not found for option '-L/opt/local/lib'
ld: library not found for -lcfitsio

I have the cfitsio library installed, but I cannot find where to tell the make file to look in the correct directory location. Any ideas?

astroJeff commented 2 years ago

I was able to hack together a solution whereby I create the missing /opt/local/lib directory and copy my install of cfitsio into that, but there ought to be a better way.

rhdtownsend commented 2 years ago

Yep, there is -- edit the definition of FITS_LDFLAGS in $MSG_DIR/build/Makefile

rhdtownsend commented 2 years ago

I should add that the cfitsio library is only needed during build when TOOLS=yes.

astroJeff commented 2 years ago

All good. Sorry for the confusion. Thank you! One very minor point - I had trouble finding this file (I definitely should have found it!) because the documentation all discusses a Makefile in $MSG_DIR/src/build/Makefile.