Hello everyone,
today i upgraded my Ubuntu system to 20.04 and now my dynare is no longer working. As there were some problems I also installed the newest version of Matlab R2020a, removed dynare and dynare-matlab and reinstalled via the terminal to get dynare 4.6. But, as last time, something went wrong with the dynare-matlab installation. I tried different workarounds but I don’t seem to be able to solve the probelm.
The latest output is:
$ sudo apt-get install dynare-matlab
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
icu-devtools libboost-graph-dev libboost-graph1.71-dev libboost-graph1.71.0 libboost-regex1.71-dev libboost-regex1.71.0
libboost-serialization1.71-dev libboost-serialization1.71.0 libboost-test1.71-dev libboost-test1.71.0 libboost1.71-dev libgsl-dev libicu-dev
libslicot-pic
Suggested packages:
graphviz libboost1.71-doc libboost-atomic1.71-dev libboost-chrono1.71-dev libboost-container1.71-dev libboost-context1.71-dev
libboost-contract1.71-dev libboost-coroutine1.71-dev libboost-date-time1.71-dev libboost-exception1.71-dev libboost-fiber1.71-dev
libboost-filesystem1.71-dev libboost-graph-parallel1.71-dev libboost-iostreams1.71-dev libboost-locale1.71-dev libboost-log1.71-dev
libboost-math1.71-dev libboost-mpi1.71-dev libboost-mpi-python1.71-dev libboost-numpy1.71-dev libboost-program-options1.71-dev
libboost-python1.71-dev libboost-random1.71-dev libboost-stacktrace1.71-dev libboost-system1.71-dev libboost-thread1.71-dev
libboost-timer1.71-dev libboost-type-erasure1.71-dev libboost-wave1.71-dev libboost1.71-tools-dev libmpfrc++-dev libntl-dev icu-doc
The following NEW packages will be installed:
dynare-matlab icu-devtools libboost-graph-dev libboost-graph1.71-dev libboost-graph1.71.0 libboost-regex1.71-dev libboost-regex1.71.0
libboost-serialization1.71-dev libboost-serialization1.71.0 libboost-test1.71-dev libboost-test1.71.0 libboost1.71-dev libgsl-dev libicu-dev
libslicot-pic
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/26,0 MB of archives.
After this operation, 238 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libboost1.71-dev:amd64.
(Reading database ... 439091 files and directories currently installed.)
Preparing to unpack .../00-libboost1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-regex1.71.0:amd64.
Preparing to unpack .../01-libboost-regex1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-regex1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-graph1.71.0:amd64.
Preparing to unpack .../02-libboost-graph1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-graph1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package icu-devtools.
Preparing to unpack .../03-icu-devtools_66.1-2ubuntu2_amd64.deb ...
Unpacking icu-devtools (66.1-2ubuntu2) ...
Selecting previously unselected package libicu-dev:amd64.
Preparing to unpack .../04-libicu-dev_66.1-2ubuntu2_amd64.deb ...
Unpacking libicu-dev:amd64 (66.1-2ubuntu2) ...
Selecting previously unselected package libboost-regex1.71-dev:amd64.
Preparing to unpack .../05-libboost-regex1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-regex1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-serialization1.71.0:amd64.
Preparing to unpack .../06-libboost-serialization1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-serialization1.71-dev:amd64.
Preparing to unpack .../07-libboost-serialization1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-serialization1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-test1.71.0:amd64.
Preparing to unpack .../08-libboost-test1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-test1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-test1.71-dev:amd64.
Preparing to unpack .../09-libboost-test1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-test1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-graph1.71-dev:amd64.
Preparing to unpack .../10-libboost-graph1.71-dev_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-graph1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package libboost-graph-dev:amd64.
Preparing to unpack .../11-libboost-graph-dev_1.71.0.0ubuntu2_amd64.deb ...
Unpacking libboost-graph-dev:amd64 (1.71.0.0ubuntu2) ...
Selecting previously unselected package libgsl-dev.
Preparing to unpack .../12-libgsl-dev_2.5+dfsg-6build1_amd64.deb ...
Unpacking libgsl-dev (2.5+dfsg-6build1) ...
Selecting previously unselected package libslicot-pic:amd64.
Preparing to unpack .../13-libslicot-pic_5.0+20101122-4build1_amd64.deb ...
Unpacking libslicot-pic:amd64 (5.0+20101122-4build1) ...
Selecting previously unselected package dynare-matlab.
Preparing to unpack .../14-dynare-matlab_4.6.0+dfsg-2_all.deb ...
Unpacking dynare-matlab (4.6.0+dfsg-2) ...
Setting up libgsl-dev (2.5+dfsg-6build1) ...
Setting up libboost1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Setting up icu-devtools (66.1-2ubuntu2) ...
Setting up libboost-regex1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-test1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libslicot-pic:amd64 (5.0+20101122-4build1) ...
Setting up libboost-graph1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libicu-dev:amd64 (66.1-2ubuntu2) ...
Setting up libboost-test1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-regex1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-serialization1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-graph1.71-dev:amd64 (1.71.0-6ubuntu6) ...
Setting up libboost-graph-dev:amd64 (1.71.0.0ubuntu2) ...
Setting up dynare-matlab (4.6.0+dfsg-2) ...
Building Matlab extensions (logfile at /tmp/dynare-matlab-mexbuild-1588945586.10YSdr8)
ar: `u' modifier ignored since `D' is the default (see `U')
dw_switch.c: In function ‘LogProbabilityStates’:
dw_switch.c:2083:1: warning: control reaches end of non-void function [-Wreturn-type]
2083 | }
| ^
In file included from /usr/include/string.h:495,
from mex_top_level.cc:21:
In function ‘char* strncpy(char*, const char*, size_t)’,
inlined from ‘void mexFunction(int, mxArray**, int, const mxArray**)’ at mex_top_level.cc:63:10:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sbvar_simulate.c:39:18: warning: ‘LargestRoot’ defined but not used [-Wunused-function]
39 | static PRECISION LargestRoot(TMatrix B)
| ^~~~~~~~~~~
sbvar_impulse_responses.c: In function ‘dw_sbvar_impulse_response_command_line’:
sbvar_impulse_responses.c:1144:13: warning: variable ‘explosive_cutoff’ set but not used [-Wunused-but-set-variable]
1144 | PRECISION explosive_cutoff;
| ^~~~~~~~~~~~~~~~
sbvar_impulse_responses.c:1143:18: warning: variable ‘sample’ set but not used [-Wunused-but-set-variable]
1143 | TVector **IR, *sample=(TVector*)NULL;
| ^~~~~~
sbvar_impulse_responses.c:1139:56: warning: variable ‘T’ set but not used [-Wunused-but-set-variable]
1139 | int ergodic, type, s, horizon, thin, draws, i, j, n, T, nposterior_draws;
| ^
dw_csminwel.c: In function ‘csminwel’:
dw_csminwel.c:321:26: warning: ‘badg[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
321 | else if (f[2]<f[0] && badg[2]==0) {
| ~~~~~~~~~~^~~~~~~~~~~~~
dw_csminwel.c:154:16: warning: ‘badg[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
154 | int done=0, badg[4], badgh, nogh=1, stuck=0;
| ^~~~
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
W: Operation was interrupted before it could finish
Before that I was getting a similar error message that many people get:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don’t know what I am doing wrong. I removed the old Matlab install and all packages and put the new version in the folder it belongs: /usr/local/Matlab/R2020a
In @wmutschl’s amazing YouTube-tutorials I see that he is using the newest version of Matlab and dynare in Ubuntu 20.04, so I guess it should work together.
@sebastien I hope it is OK if I directly send this question your way as you helped me last time as well.
Thank you very much