./install.com doesn't work

install.com> Phase 3 completed.
install.com> WARNING: install.com is deprecated
install.com> and will be removed from future releases.
install.com> Please use ./configure and CMake.

and configure doesn't work , it says:

ERROR cmake configure failed
check cmake log files and try again

I don't remember how I made this step pass yesterday, but the second error would be :

Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran

I don't know how to check the versions and compile mpi.mod using the same compiler version. head -1 mpi.mod and zcat mpi.mod | head -1 give me command not found error.

Thank you.