Page 1 of 1

Library libstdc++.so.6

PostPosted: Tue Feb 23, 2016 1:36 pm
by HaroldVasquez
Dear sirs,

I just installed dynare 4.4.3 in Ubuntu 15.10, and running in Matlab R2015b. When I try to run dynare, for a basic new-Keynesian close economy model, I get the following error:

/usr/lib/dynare/matlab/dynare_m: /usr/local/MATLAB/R2015b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/dynare/matlab/dynare_m)
/usr/lib/dynare/matlab/dynare_m: /usr/local/MATLAB/R2015b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/dynare/matlab/dynare_m)
Error using dynare (line 182)
DYNARE: preprocessing failed

I have tried to search and find those libraries but I have not been successful. Please, advice.
Harold

Re: Library libstdc++.so.6

PostPosted: Tue Feb 23, 2016 4:09 pm
by HaroldVasquez
Problem solve just following two steps:
1. Locate the folder: /matlab/sys/os/glnxa64/
2. Rename the library to eliminate the conflic:
sudo mv libstdc++.so.6 libstdc++.so.6.orig
(this effectively deletes libstdc++.so.6, but keeps a backup at libstdc++.so.6.orig in case you ever need it)