Differences between revisions 1 and 26 (spanning 25 versions)
Revision 1 as of 2010-01-06 17:01:05
Size: 2363
Comment:
Revision 26 as of 2013-04-18 13:00:14
Size: 5692
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
== Installing the Dynare 4.1.0 Package on Mac OS X 10.5 or higher ==
 1. Download and run the appropriate Dynare Package for your system; OS X v10.5 should download the 32-bit package while OS X v10.6 are free to choose between the 32-bit and the 64-bit packages (unless you will be using Dynare with Octave, which only supports 32-bit).
 1. Install Dynare by double-clicking on the package and following the installation instructions.
This page documents the installation of the Dynare on Mac OS X. If you have any troubles, please contact <<MailTo(houtan AT SPAMFREE dynare DOT org)>>
Line 8: Line 6:
=== Matlab Setup ===
 1. Once installation is complete, open Matlab. Go to {{{File->Set Path...}}} and add the full path to the {{{DYNARE-4.1.0/}}} installation folder. If you have followed the standard installation (i.e., not changed the default installation location), this will be {{{/Applications/DYNARE-4.1.0}}}.
 1. Within the installation folder, navigate to {{{mex/sources}}}. In the standard installation, this will be {{{/Applications/DYNARE-4.1.0/mex/sources}}}.
 1. At the Matlab prompt, run
= First steps =
 1. Download the appropriate Dynare package for your version of Mac OS X from the [[http://www.dynare.org/download/dynare-stable|Dynare website]]
 1. Install Dynare by double-clicking on the package and following the installation instructions
 1. The default installation folder is {{{/Applications/Dynare/<<version>>}}}, where {{{<<version>>}}} is one of {{{4.2.0, 4.2.1, 4.2.2}}}, etc.

= Dynare 4.3.3 or higher on Mac OS X 10.6 or higher =

== MATLAB Setup ==

 1. Add {{{/Applications/Dynare/<<version>>/matlab/}}} to your Matlab path. You can do this either using the {{{addpath}}} command to add it just for this session or using the menu option {{{File->Set Path...}}} to add it across Matlab sessions.

== Octave Setup ==
 1. Install Octave 3.6.4 via Homebrew (which requires XCode):
  1. Install [[https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12#|XCode]] from the Mac App Store:
   1. Once it has installed, Open Xcode (located in the {{{Applications}}} folder
   1. Go to {{{Xcode->Preferences...}}}
   1. In the window that opens, click on the {{{Downloads}}} tab
   1. In the tab that appears, click on the {{{Components}}} button
   1. Next to {{{Command Line Tools}}}, click on {{{Install}}}
  1. Install [[http://mxcl.github.io/homebrew/|Homebrew]]
   1. Open Terminal.app (Open a Finder window to {{{Applications/Utilities/Terminal.app}}})
   1. Once a Terminal window opens, type) {{{ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"}}}
  1. Install Octave by following the instructions on [[http://wiki.octave.org/Octave_for_MacOS_X#Simple_Installation_Instructions_3|this site]], reproduced below. Type each instruction at the Terminal prompt:
  {{{
brew tap homebrew/science
brew install gfortran
brew tap homebrew/versions
brew versions suite-sparse
cd /usr/local/Library/Taps/homebrew-science/
git checkout ff53163 /usr/local/Library/Taps/homebrew-science/suite-sparse.rb
brew unlink suite-sparse
brew install suite-sparse
brew switch suite-sparse 3.7.0
brew install octave
  }}}
 1. Before executing MOD files, you need to execute the following command at Octave prompt:
Line 13: Line 43:
>> build_matlab addpath /Applications/Dynare/<<version>>/matlab
Line 15: Line 45:
 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.1.0/matlab}}}.
Line 17: Line 46:
=== Octave Setup ===
 1. Download and install the latest [[http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary|Octave Mac Os X binary]] and add {{{/Applications/Octave.app/Contents/Resources/bin}}} to your search path. 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
= Dynare 4.2.2 - 4.3.2 on Mac OS X 10.6 or higher =

== MATLAB Setup ==

 1. Add {{{/Applications/Dynare/<<
version>>/matlab/}}} to your Matlab path. You can do this either using the {{{addpath}}} command to add it just for this session or using the menu option {{{File->Set Path...}}} to add it across Matlab sessions.

== Octave Setup for OS X
10.6 and 10.7 (not available under 10.8) ==

 1
. Download and install version 3.4.0 of the [[http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary|Octave Mac OS X binary]] and add {{{/Applications/Octave.app/Contents/Resources/bin}}} to your search path.
 1. If you are going to use the {{{use_dll}}} or {{{k_order_perturbation}}} options, a
dd the following lines to the {{{/Applications/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0}}} file after the {{{set -e}}} statement at the top of the file
Line 25: Line 62:
 }}} NB: Regardless of your OS X version, you must use 32-bit Dynare instead of 64-bit Dynare with Octave, as it does not yet provide 64-bit support.  }}}
 1. Before executing MOD files, you need to execute the following command at Octave prompt:
 {{{
addpath /Applications/Dynare/<<version>>/matlab
 }}}
Line 27: Line 68:
=== Documentation ===
Documentation can be found in the {{{doc/}}} folder under the installation directory (the default is {{{/Applications/DYNARE-4.1.0/doc}}}). The User Guide (located by default in {{{/Applications/DYNARE-4.1.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]].
= Dynare 4.2.0 or 4.2.1 on Mac OS X 10.5 or 10.6 =

== MATLAB Setup ==

 1. Install XCode 3.2 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.
 1. In Matlab, change directory to the root folder of the Dynare installation directory. In the standard installation, you need to do:
 {{{
>> cd /Applications/Dynare/<<version>>
 }}}
 1. At the Matlab prompt, run
 {{{
>> build_dynare
 }}}
 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/<<version>>/matlab}}}. Save the changes before closing the window.

== Octave Setup ==

 1. Download and install version 3.2.3 of the [[http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary|Octave Mac OS X binary]] and add {{{/Applications/Octave.app/Contents/Resources/bin}}} to your search path.
 1. 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}"
 }}}
 1. Before excuting MOD files, you need to execute the following command at Octave prompt:
 {{{
addpath /Applications/Dynare/<<version>>/matlab
 }}}

= Documentation =

Documentation can be found in the {{{doc/}}} folder under the installation directory (the default is {{{/Applications/Dynare/<<version>>/doc}}}). The User Guide (located by default in {{{/Applications/Dynare/<<version>>/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 on Mac OS X. If you have any troubles, please contact <houtan AT SPAMFREE dynare DOT org>

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/<<version>>, where <<version>> is one of 4.2.0, 4.2.1, 4.2.2, etc.

Dynare 4.3.3 or higher on Mac OS X 10.6 or higher

MATLAB Setup

  1. Add /Applications/Dynare/<<version>>/matlab/ to your Matlab path. You can do this either using the addpath command to add it just for this session or using the menu option File->Set Path... to add it across Matlab sessions.

Octave Setup

  1. Install Octave 3.6.4 via Homebrew (which requires XCode):
    1. Install XCode from the Mac App Store:

      1. Once it has installed, Open Xcode (located in the Applications folder

      2. Go to Xcode->Preferences...

      3. In the window that opens, click on the Downloads tab

      4. In the tab that appears, click on the Components button

      5. Next to Command Line Tools, click on Install

    2. Install Homebrew

      1. Open Terminal.app (Open a Finder window to Applications/Utilities/Terminal.app)

      2. Once a Terminal window opens, type) ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

    3. Install Octave by following the instructions on this site, reproduced below. Type each instruction at the Terminal prompt:

      brew tap homebrew/science
      brew install gfortran
      brew tap homebrew/versions
      brew versions suite-sparse
      cd /usr/local/Library/Taps/homebrew-science/
      git checkout ff53163 /usr/local/Library/Taps/homebrew-science/suite-sparse.rb
      brew unlink suite-sparse
      brew install suite-sparse
      brew switch suite-sparse 3.7.0
      brew install octave
  2. Before executing MOD files, you need to execute the following command at Octave prompt:
    addpath /Applications/Dynare/<<version>>/matlab

Dynare 4.2.2 - 4.3.2 on Mac OS X 10.6 or higher

MATLAB Setup

  1. Add /Applications/Dynare/<<version>>/matlab/ to your Matlab path. You can do this either using the addpath command to add it just for this session or using the menu option File->Set Path... to add it across Matlab sessions.

Octave Setup for OS X 10.6 and 10.7 (not available under 10.8)

  1. Download and install version 3.4.0 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.4.0 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 executing MOD files, you need to execute the following command at Octave prompt:
    addpath /Applications/Dynare/<<version>>/matlab

Dynare 4.2.0 or 4.2.1 on Mac OS X 10.5 or 10.6

MATLAB Setup

  1. Install XCode 3.2 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/<<version>>
  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/<<version>>/matlab. Save the changes before closing the window.

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/<<version>>/matlab

Documentation

Documentation can be found in the doc/ folder under the installation directory (the default is /Applications/Dynare/<<version>>/doc). The User Guide (located by default in /Applications/Dynare/<<version>>/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)