I have been unable to configure 4.4.2 with MatIO 1.5.2. I found that the library check failed because it did not load the hdf5 and z libraries in addition to matio. I modified the configure script as follows, but that is insufficient.
[root@seldon dynare-4.4.2.newconf]# diff configure configure.orig | ediff
-------- 1 line changed at 5770 from:
LIBS="-lmatio -lhdf5 -lz $LIBS"
-------- to:
LIBS="-lmatio $LIBS"
-------- 1 line changed at 5801 from:
LIBADD_MATIO="-lmatio -lhdf5 -lz $LIBS"
-------- to:
LIBADD_MATIO="-lmatio $LIBS"
[root@seldon dynare-4.4.2.newconf]# diff configure.orig configure | ediff
-------- 1 line changed at 5770 from:
LIBS="-lmatio $LIBS"
-------- to:
LIBS="-lmatio -lhdf5 -lz $LIBS"
-------- 1 line changed at 5801 from:
LIBADD_MATIO="-lmatio $LIBS"
-------- to:
LIBADD_MATIO="-lmatio -lhdf5 -lz $LIBS"
[root@seldon dynare-4.4.2.newconf]# module load matio
[root@seldon dynare-4.4.2.newconf]# pkg-config --libs matio
-L/sscc/opt/matio-1.5.2/lib -lmatio -lhdf5 -lz
[root@seldon dynare-4.4.2.newconf]# module show matio
-------------------------------------------------------------------
/usr/share/Modules/modulefiles/matio/1.5.2:
module-whatis This module adds MatIO, the MAT File I/O Library version 1.5.2
prepend-path PATH /sscc/opt/matio-1.5.2/bin
prepend-path MANPATH /sscc/opt/matio-1.5.2/share/man
prepend-path LD_LIBRARY_PATH /sscc/opt/matio-1.5.2/lib
prepend-path PKG_CONFIG_PATH /sscc/opt/matio-1.5.2/lib/pkgconfig
prepend-path C_INCLUDE_PATH /sscc/opt/matio-1.5.2/include
-------------------------------------------------------------------
Here's the way I run configure:
[root@seldon dynare-4.4.2.newconf]# cat Configure
#!/bin/sh
NUVERSION=4.4.2
MATLABLOC=r2014a
MATLABVER=r2014a
rm -f config.cache
source /sscc/opt/matlab.d/r2014a/zzGCC473.sh
BIN=/sscc/opt/matlab.${MATLABLOC}/bin
module load texlive
export PDFLATEX=/sscc/opt/texlive/2014/bin/x86_64-linux/pdflatex
source /sscc/opt/boost.1.42.0/bin/Boost
export PATH=${BIN}:${PATH}
export LD_LIBRARY_PATH=${LIB}:/opt/acml4.4.0/gfortran64/lib:${LD_LIBRARY_PATH}
export BLAS_LIBS="-L/opt/acml4.4.0/gfortran64/lib -lacml -lacml_mv"
module load matio
LIBS="-L/opt/acml4.4.0/gfortran64/lib -lacml -lacml_mv -L/sscc/opt/matio-1.5.2/lib -lmatio -lhdf5 -lz" \
CFLAGS="-O3" CXXFLAGS="-O3" F77=gfortran \
./configure --prefix=/sscc/opt/dynare-${NUVERSION} \
--with-boost=/sscc/opt/boost.1.42.0 \
--with-boost-libdir=/sscc/opt/boost.1.42.0/lib \
--with-blas="-lacml -lacml_mv"\
--with-matlab=/sscc/opt/matlab.${MATLABLOC} MATLAB_VERSION=${MATLABVER} \
--with-matio=/sscc/opt/matio-1.5.2 \
--enable-openmp \
--disable-octave \
2>&1 | tee NUInstall.configure
exit
The configuration summary:
configure:
Dynare is now configured for building the following components...
Binaries (with "make"):
MEX files for MATLAB (except those listed below): yes
k-order and dynare_simul MEX files for MATLAB: no (missing MatIO library)
MS-SBVAR MEX files for MATLAB: yes
Kalman Steady State MEX file for MATLAB: no (missing SLICOT)
M2HTML documentation: no
I have attached config.log and the output of running the Configure script.
Your assistance is appreciated!
Bruce