Page 1 of 1

Installing Dynare on Mandriva 2009

PostPosted: Fri Apr 17, 2009 3:16 pm
by kalagman
Hello!

I would just like to ask if anyone has tried installing Dynare in Mandriva 2009. I tried following the installation instructions for Ubuntu and Debian but no success so far.

Thank you

Sincerely,
Karl

Re: Installing Dynare on Mandriva 2009

PostPosted: Sat Apr 18, 2009 6:58 pm
by MichelJuillard
I don't have access to Mandriva, but what kind of error message are you getting?

Best

Michel

Re: Installing Dynare on Mandriva 2009

PostPosted: Sun Apr 19, 2009 3:06 am
by kalagman
Thanks Michel for the reply. Dynare finally worked in Mandriva 2009. Here is the step by step summary of the methods for future reference:

1. Download the latest version of Dynare ( Dynare-4.0.3). Unzip it.
2. In the console as a root user, copy the contents to /lib/dynare. (cp -R /home/dynare/* lib/dynare)
3. $ cd lib/dynare/preprocessor.
4. $ make

If there is error in compiling, read this carefully ([1])
If there is no error read the link as well to better understand what is happening :), then proceed to step 5.

5. Launch Matlab Application then from the command window go to lib/dynare/mex/sources.
6. Type in matlab console: build_matlab

This will compile the different dynamic libraries according to your processor specifications. [1]

7. mv MATLAB_PATH/sys/os/glnx86/libgcc_s.so.1 MATLAB_PATH/sys/os/glnx86/libgcc_s.so.1.cache

This deletes the gcc library distributed (and used by default) by matlab (GCC 4.1.1). Mandriva 2009 uses GCC 4.3.2. This removes the compatibility issues. [2]

8. add the correct path at run time. [3] Type in matlab console: addpath /lib/dynare/matlab.

This should be working by now. Try and test it.

9. You should be in this current directory (in matlab): lib/dynare/doc/userguide/models.
10. Try running this mod file: dynare fs2000ns.mod

Enjoy!

Sincerely,
Karl


References:
[1] http://www.christophecahn.me/?p=12
[2] http://www.dynare.org/DynareWiki/BuildingPreprocessor
[3] http://www.dynare.org/DynareWiki/Instal ... anOrUbuntu