cconroy20 / fsps

Flexible Stellar Population Synthesis
MIT License
85 stars 48 forks source link

gfortran issue when installing fsps #44

Closed palfeng closed 3 years ago

palfeng commented 3 years ago

Hello,

I am installing fsps into a linux machine. After I edited the SPS_HOME path and go to src folder to run make, I got the following error:

gfortran -O3 -cpp -fPIC sps_utils.f90 -c sps_utils.f90:6.11:

   USE sps_vars
       1

Fatal Error: File 'sps_vars.mod' opened at (1) is not a GNU Fortran module file make: *** [sps_utils.o] Error 1

I think this is the fortran complier issue? I tried each of the "Compiler Optimizations" available in Makefile but none of them works. Thanks for your help!

--Xinfeng

Linux version: NAME="CentOS Linux" VERSION="7 (Core)" ID="centos"

gfortran version: GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Copyright (C) 2015 Free Software Foundation, Inc.

bd-j commented 3 years ago

That is an older compiler, but you might try just running

make clean

in the src/ directory

before running make all again

palfeng commented 3 years ago

You are right, and I have installed it successfully. Thanks!