Differences between revisions 17 and 19 (spanning 2 versions)
Revision 17 as of 2011-03-29 13:03:11
Size: 2614
Comment:
Revision 19 as of 2011-06-24 09:44:57
Size: 2565
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
This page documents the installation of the Dynare 4.2 Package on Mac OS X 10.5 or higher. This page documents the installation of the Dynare 4.2.1 Package on Mac OS X 10.5 or higher.
Line 6: Line 6:
 1. Download the Dynare package for Mac OS X from [[http://www.dynare.org/download/dynare-4.2/mac-os-x|Dynare website]]  1. Download the appropriate Dynare package for your version of Mac OS X from the [[http://www.dynare.org/download/dynare-4.2/mac-os-x|Dynare website]]
Line 8: Line 8:
 1. The default installation folder is {{{/Applications/Dynare/4.2.0}}}, but you can modify it  1. The default installation folder is {{{/Applications/Dynare/4.2.1}}}, but you can modify it
Line 12: Line 12:
 1. Install XCode 3, which can either be installed from the installation discs that came with your Mac. This installs the necessary gcc compilers required by {{{build_dynare.m}}} in step 3. '''NB''' Do not install XCode 4 as the installation will not work (thanks to George Xing for pointing this out).  1. Install XCode 3 or later, which can either be installed from the internet or from the installation discs that came with your Mac. This installs the necessary gcc compilers required by {{{build_dynare.m}}} in step 3.
Line 15: Line 15:
>> cd /Applications/Dynare/4.2.0 >> cd /Applications/Dynare/4.2.1
Line 21: Line 21:
 1. Once this has finished running, go to {{{File->Set Path...}}} and add the path to the {{{matlab/}}} subfolder under the installation folder. In the standard installation, this will be {{{/Applications/Dynare/4.2.0/matlab}}}. Save the changes before closing the window.  1. Once this has finished running, go to {{{File->Set Path...}}} and add the path to the {{{matlab/}}} subfolder under the installation folder. In the standard installation, this will be {{{/Applications/Dynare/4.2.1/matlab}}}. Save the changes before closing the window.
Line 36: Line 36:
addpath /Applications/Dynare/4.2.0/matlab addpath /Applications/Dynare/4.2.1/matlab
Line 41: Line 41:
Documentation can be found in the {{{doc/}}} folder under the installation directory (the default is {{{/Applications/Dynare/4.2.0/doc}}}). The User Guide (located by default in {{{/Applications/Dynare/4.2.0/doc/userguide/UserGuide.pdf}}}) is a particularly helpful starting place. Errata for the User Guide can be found [[http://www.dynare.org/DynareWiki/UserGuide|here]]. Documentation can be found in the {{{doc/}}} folder under the installation directory (the default is {{{/Applications/Dynare/4.2.1/doc}}}). The User Guide (located by default in {{{/Applications/Dynare/4.2.1/doc/userguide/UserGuide.pdf}}}) is a particularly helpful starting place. Errata for the User Guide can be found [[http://www.dynare.org/DynareWiki/UserGuide|here]].

This page documents the installation of the Dynare 4.2.1 Package on Mac OS X 10.5 or higher.

First steps

  1. Download the appropriate Dynare package for your version of Mac OS X from the Dynare website

  2. Install Dynare by double-clicking on the package and following the installation instructions
  3. The default installation folder is /Applications/Dynare/4.2.1, but you can modify it

MATLAB Setup

  1. Install XCode 3 or later, which can either be installed from the internet or from the installation discs that came with your Mac. This installs the necessary gcc compilers required by build_dynare.m in step 3.

  2. In Matlab, change directory to the root folder of the Dynare installation directory. In the standard installation, you need to do:
    >> cd /Applications/Dynare/4.2.1
  3. At the Matlab prompt, run
    >> build_dynare
  4. Once this has finished running, go to File->Set Path... and add the path to the matlab/ subfolder under the installation folder. In the standard installation, this will be /Applications/Dynare/4.2.1/matlab. Save the changes before closing the window.

  5. If you have any troubles, please contact <houtan DOT bastani AT SPAMFREE ens DOT fr>

Octave Setup

  1. Download and install version 3.2.3 of the Octave Mac OS X binary and add /Applications/Octave.app/Contents/Resources/bin to your search path.

  2. If you are going to use the use_dll or k_order_perturbation options, add the following lines to the /Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.2.3 file after the set -e statement at the top of the file

    CFLAGS="-arch i386 ${CFLAGS}"
    FFLAGS="-arch i386 ${FFLAGS}"
    CPPFLAGS="-arch i386 ${CPPFLAGS}"
    CXXFLAGS="-arch i386 ${CXXFLAGS}"
    LDFLAGS="-arch i386 ${LDFLAGS}"
  3. Before excuting MOD files, you need to execute the following command at Octave prompt:
    addpath /Applications/Dynare/4.2.1/matlab

Documentation

Documentation can be found in the doc/ folder under the installation directory (the default is /Applications/Dynare/4.2.1/doc). The User Guide (located by default in /Applications/Dynare/4.2.1/doc/userguide/UserGuide.pdf) is a particularly helpful starting place. Errata for the User Guide can be found here.

DynareWiki: InstallOnMacOSX (last edited 2018-02-13 15:38:18 by HoutanBastani)