Hi,
I’m trying to compile dynare from source on a machine with ubuntu 20.04.2 LTS and Matlab ‘9.8.0.1396136 (R2020a) Update 3’.
I do the following:
git clone --recurse-submodules https://git.dynare.org/Dynare/dynare.git --single-branch --branch 4.6.4
cd dynare
autoreconf -si
and everything seems ok. Then I do:
./configure --with-matlab=/usr/local/MATLAB/R2020a --disable-octave
and get the following error:
configure: error: MATLAB cannot be found
configure: error: ./configure failed for mex/build/matlab
I would be extremely grateful for any suggestion.
With my best regards,
Leonardo Bargigli
This is the complete output of the ./configure command:
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking how to create a pax tar archive… gnutar
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking whether make supports the include directive… yes (GNU style)
checking dependency style of gcc… gcc3
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking whether g++ supports C++17 features with -std=gnu++17… yes
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking for ar… ar
checking for ranlib… ranlib
checking the archiver (ar) interface… ar
checking whether ln -s works… yes
checking for flex… flex
checking lex output file root… lex.yy
checking lex library… none needed
checking whether yytext is a pointer… no
checking for bison… bison
checking for pdflatex… pdflatex
checking for bibtex… bibtex
checking for sphinx-build… sphinx-build
checking for usability of class beamer… yes
checking for g77… no
checking for xlf… no
checking for f77… f77
checking whether we are using the GNU Fortran 77 compiler… yes
checking whether f77 accepts -g… yes
checking how to get verbose linking output from f77… -v
checking for Fortran 77 libraries of f77… -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/…/…/…/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/…/…/…/…/lib -L/lib/x86_64-linux-gnu -L/lib/…/lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/…/lib -L/usr/lib/gcc/x86_64-linux-gnu/9/…/…/… -lgfortran -lm -lquadmath
checking for dummy main to link with Fortran 77 libraries… none
checking for Fortran 77 name-mangling scheme… lower case, underscore, no extra underscore
checking if sgemm_ is being linked in already… no
checking for sgemm_ in -lopenblas… no
checking for ATL_xerbla in -latlas… no
checking for sgemm_ in -lblas… yes
checking for dgemm_ in -ldgemm… no
checking for sgemm_ in -lmkl_intel_lp64… no
checking for sgemm_ in -lmkl… no
checking for sgemm_ in -framework vecLib… no
checking for sgemm_ in -lcxml… no
checking for sgemm_ in -ldxml… no
checking for sgemm_ in -lscs… no
checking for sgemm_ in -lcomplib.sgimath… no
checking for sgemm_ in -lblas… (cached) yes
checking for sgemm_ in -lessl… no
checking for sgemm_ in -lblas… (cached) yes
checking for cheev_… no
checking for cheev_ in -llapack… yes
checking how to run the C++ preprocessor… g++ -std=gnu++17 -E
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for compress in -lz… yes
checking for SZ_Compress in -lszip… no
checking for SZ_Compress in -lsz… no
checking for H5Fcreate in -lhdf5… no
checking matio.h usability… yes
checking matio.h presence… yes
checking for matio.h… yes
checking for Mat_Open in -lmatio… yes
checking for MATLAB prefix… /usr/local/MATLAB/R2020a
checking whether to enable MATLAB support… yes
checking for MEX-file suffix… mexa64
checking for MATLAB machine architecture… glnxa64
checking for MATLAB version… unknown
configure:
Dynare is now configured for building the following components…
Binaries (with “make”):
Dynare++: yes
Documentation (with “make html pdf”):
Manual and other documents yes
Dynare internal doc: no
Testsuites (run with “make check”):
Dynare for MATLAB: yes
Dynare for Octave: no
Dynare++: yes
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating VERSION
config.status: creating doc/Makefile
config.status: creating doc/manual/Makefile
config.status: creating doc/manual/utils/version.py
config.status: creating doc/parallel/Makefile
config.status: creating doc/internals/Makefile
config.status: creating doc/gsa/Makefile
config.status: creating doc/dseries-and-reporting/Makefile
config.status: creating tests/Makefile
config.status: creating matlab/dynare_version.m
config.status: creating dynare++/Makefile
config.status: creating dynare++/parser/cc/Makefile
config.status: creating dynare++/sylv/Makefile
config.status: creating dynare++/sylv/cc/Makefile
config.status: creating dynare++/sylv/testing/Makefile
config.status: creating dynare++/tl/Makefile
config.status: creating dynare++/tl/cc/Makefile
config.status: creating dynare++/tl/testing/Makefile
config.status: creating dynare++/doc/Makefile
config.status: creating dynare++/utils/cc/Makefile
config.status: creating dynare++/integ/Makefile
config.status: creating dynare++/integ/cc/Makefile
config.status: creating dynare++/integ/src/Makefile
config.status: creating dynare++/integ/testing/Makefile
config.status: creating dynare++/kord/Makefile
config.status: creating dynare++/src/Makefile
config.status: creating dynare++/tests/Makefile
config.status: creating mex/sources/Makefile
config.status: executing depfiles commands
=== configuring in preprocessor (/home/disei/Scaricati/dynare/preprocessor)
configure: running /bin/bash ./configure --disable-option-checking ‘–prefix=/usr/local’ ‘–with-matlab=/usr/local/MATLAB/R2020a’ ‘–disable-octave’ --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking how to create a pax tar archive… gnutar
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking whether make supports the include directive… yes (GNU style)
checking dependency style of gcc… gcc3
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking whether g++ supports C++17 features with -std=gnu++17… yes
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking for ar… ar
checking for ranlib… ranlib
checking the archiver (ar) interface… ar
checking for flex… flex
checking lex output file root… lex.yy
checking lex library… none needed
checking whether yytext is a pointer… no
checking for bison… bison
checking for boostlib >= 1.36 (103600)… yes
checking how to run the C++ preprocessor… g++ -std=gnu++17 -E
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking boost/graph/adjacency_list.hpp usability… yes
checking boost/graph/adjacency_list.hpp presence… yes
checking for boost/graph/adjacency_list.hpp… yes
checking boost/algorithm/string/trim.hpp usability… yes
checking boost/algorithm/string/trim.hpp presence… yes
checking for boost/algorithm/string/trim.hpp… yes
checking boost/algorithm/string/split.hpp usability… yes
checking boost/algorithm/string/split.hpp presence… yes
checking for boost/algorithm/string/split.hpp… yes
checking for doxygen… doxygen
checking for pdflatex… pdflatex
checking for bibtex… bibtex
checking for usability of class beamer… (cached) yes
configure:
The Dynare Preprocessor is now configured to build…
Binaries (with “make”)
Dynare preprocessor: yes
PDF documentation (with “make pdf”):
Preprocessor & Macroprocessor presentations: yes
HTML documentation (with “make html”):
Dynare preprocessor internal doc: yes
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/macro/Makefile
config.status: creating doc/Makefile
config.status: creating doc/preprocessor/Makefile
config.status: creating doc/macroprocessor/Makefile
config.status: executing depfiles commands
=== configuring in mex/build/matlab (/home/disei/Scaricati/dynare/mex/build/matlab)
configure: running /bin/bash ./configure --disable-option-checking ‘–prefix=/usr/local’ ‘–with-matlab=/usr/local/MATLAB/R2020a’ ‘–disable-octave’ --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking for MATLAB prefix… /usr/local/MATLAB/R2020a
checking whether to enable MATLAB support… yes
checking for MATLAB version… unknown
checking for MEX-file suffix… mexa64
setting MEX-file suffix to .mexa64
checking for MATLAB machine architecture… glnxa64
checking for a sed that does not truncate output… /bin/sed
checking for options to compile MEX for MATLAB… ok
configure: error: MATLAB cannot be found
configure: error: ./configure failed for mex/build/matlab