compile version 4.1 in Ubuntu

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

compile version 4.1 in Ubuntu

Postby lombard » Wed Jan 06, 2010 12:35 pm

Hi,

I've followed the instructions on the Wiki page for installation of Dynare from source.

The "make check" works fine. Yet when I try to run Dynare from Matlab I get the error message
??? Invalid MEX-file '/home/gianni/gianni/dynare_docs/dynare-4.1.0/matlab/../mex/matlab/k_order_perturbation.mexglx': /opt/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1: version `GCC_4.0.0' not found (required by /home/gianni/gianni/dynare_docs/dynare-4.1.0/matlab/../mex/matlab/k_order_perturbation.mexglx).


Notice that I have
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1


(I also compiled using make CXX=g++-4.1 with same results)

Best

Gianni
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel

Re: compile version 4.1 in Ubuntu

Postby SébastienVillemot » Thu Jan 07, 2010 8:54 am

Hi,

This has to do with MATLAB, which ships an old version of libgcc.

The solution is to rename it:
Code: Select all
mv /opt/matlab/sys/os/glnx86/libgcc_s.so.1 /opt/matlab/sys/os/glnx86/libgcc_s.so.1.bak


I hope to create soon the packages of Dynare 4.1 for Ubuntu. These packages will automatically handle that problem.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re [solved]: compile version 4.1 in Ubuntu

Postby lombard » Thu Jan 07, 2010 11:54 am

Hi,

It turned out that the library was already re-named and that the problem was my mis-understanding of the new syntax :oops:

Apparently the option use_dll in the model statement (model(use_dll)) is mandatory for third order solutions.

So Dynare 4.1 runs on Ubuntu 9.10: Well done!!

(I haven't checked yet whether the results make sense :wink: )
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests