Ubuntu 16.04 Error Building from Source

I’m trying to install the Stable Dynare from Source on Ubuntu 16.04 following this instruction very closely. Nevertheless, I get some errors. Any ideas how I can fix it? Help would be greatly appreciated!

test@laptop:~$ sudo make
Making all in preprocessor
make[1]: Entering directory '/dynare/preprocessor’
make all-recursive
make[2]: Entering directory '/dynare/preprocessor’
Making all in macro
make[3]: Entering directory '/dynare/preprocessor/macro’
make all-am
make[4]: Entering directory '/dynare/preprocessor/macro’
g++ -DPACKAGE_NAME=“dynare” -DPACKAGE_TARNAME=“dynare” -DPACKAGE_VERSION=“4.6-unstable” -DPACKAGE_STRING=“dynare\ 4.6-unstable” -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE=“dynare” -DVERSION=“4.6-unstable” -DHAVE_BOOST=/**/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/**/ -DHAVE_LIBZ=1 -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_MATLAB=1 -I. -I/usr/include -I… -g -O2 -Wall -Wno-parentheses -MT libmacro_a-MacroDriver.o -MD -MP -MF .deps/libmacro_a-MacroDriver.Tpo -c -o libmacro_a-MacroDriver.o test -f 'MacroDriver.cc' || echo './'MacroDriver.cc
MacroDriver.cc: In member function ‘void MacroDriver::parse(const string&, const string&, const string&, std::ostream&, bool, bool, std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >, std::vector<std::__cxx11::basic_string >)’:
MacroDriver.cc:63:24: error: ‘class std::__cxx11::basic_string’ has no member named ‘front’
if (it->second.front() == ‘[’ && it->second.back() == ‘]’)
^
MacroDriver.cc:63:53: error: ‘class std::__cxx11::basic_string’ has no member named ‘back’
if (it->second.front() == ‘[’ && it->second.back() == ‘]’)
^
Makefile:457: recipe for target ‘libmacro_a-MacroDriver.o’ failed
make[4]: *** [libmacro_a-MacroDriver.o] Error 1
make[4]: Leaving directory '/dynare/preprocessor/macro’
Makefile:361: recipe for target ‘all’ failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/dynare/preprocessor/macro’
Makefile:948: recipe for target ‘all-recursive’ failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/dynare/preprocessor’
Makefile:459: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/dynare/preprocessor’
Makefile:425: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1

You are building the unstable version and seem to have an older version of gcc. That issue should be fixed today. See https://github.com/DynareTeam/dynare/commit/4d89452e1bb6cc55f0800d6cbf976f2519f822c1

Thank you very much for your quick help. As an unexperienced Git user it wasn’t really clear to me which release I’m going to install by just reading the installation instruction. Maybe this point could be stated a bit more expressively in the otherwise really nicely written README file.