Configuration issues on Linux CentOS

Hello,
Long time lurker, first time poster.

As the title says I am on CentOS.
I am configuring dynare 4.5.4 (not using 4.6 to avoid dependency on C++17).

Namely, I run:

./configure --with-matlab=/usr/local/apps/MATLAB/R2018b MATLAB_VERSION=R2018b MEXEXT=mexglx

The configuration fails, ending with

checking for dummy main to link with Fortran 77 libraries… unknown
configure: error: in /usr/local/usrapps/ece506f20/jkirsch/dynare-4.5.4/mex/build/matlab':** **configure: error: linking to Fortran libraries from C fails** **See config.log’ for more details

In config.log, I see:

configure:6613: gfortran -V >&5
gfortran: error: unrecognized command line option '-V’
gfortran: fatal error: no input files
configure:6613: gfortran -qversion >&5
gfortran: error: unrecognized command line option '-qversion’
gfortran: fatal error: no input files

Maybe an embarrassing comment: I don’t use Fortran. Can I skip this somehow?

If so, and/or if not, any tips on how to proceed?

Thanks :slight_smile:

You need to install a Fortran compiler to move forward (either gfortran, g77 or some executable named f77). You should have one in CentOS repositories.

Also, I see that you are setting MEXEXT=mexglx. This implies that you using a 32-bit version of MATLAB. In any case, that should not be necessary.

Ah, I am on a shared system and did not have gfortran in my PATH anywhere. Thank you!!