Unverified Commit fbbf6f2c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

On macOS, recommend the Homebrew package for running Dynare with Octave

parent 6402b12e
Pipeline #5003 passed with stages
in 52 seconds
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
<section class="dynare_section" id="snapshot_content2"> <section class="dynare_section" id="snapshot_content2">
<p> <p>
Compatible with macOS 11 (Intel x86-64 processor only), MATLAB (R2014a Compatible with macOS 11 (Intel x86-64 processor only) and MATLAB (R2014a
and later), and GNU Octave (4.4.1 installed and later). <b>NB</b>: This package is unsigned; to run it, you need to
via <a href="https://octave-app.org">https://octave-app.org</a>). <b>NB</b>: right click on it and select "Open" from the menu that pops up. No
This package is unsigned; to run it, you need to right click on it and snapshot is available for Octave (compilation from source is therefore
select "Open" from the menu that pops up. the only option).
</p> </p>
<div class="download_table"> <div class="download_table">
{% include snapshot/download-snapshot-macos.html %} {% include snapshot/download-snapshot-macos.html %}
......
...@@ -37,10 +37,12 @@ ...@@ -37,10 +37,12 @@
<section class="dynare_section" id="stable_content2"> <section class="dynare_section" id="stable_content2">
<p> <p>
Compatible with macOS (10.11 and later, earlier versions may work but Compatible with macOS (10.11 and later, earlier versions may work but
have not been tested), any 64-bit MATLAB, and GNU Octave (4.4.1 installed have not been tested) and any 64-bit MATLAB. <b>NB</b>: This package is
via <a href="https://octave-app.org">https://octave-app.org</a>). <b>NB</b>: unsigned; to run it, you need to right click on it and select "Open" from
This package is unsigned; to run it, you need to right click on it and the menu that pops up. If you want to use Dynare with Octave, do not
select "Open" from the menu that pops up. download this package, but rather use the one from Homebrew (see
the <a href="/resources/quick_start">quick start guide</a> for
instructions).
</p> </p>
<p class="stable"> <p class="stable">
<i class="fas fa-file-download"></i> <i class="fas fa-file-download"></i>
......
...@@ -104,12 +104,16 @@ If you don’t want to type this command every time you run Octave, you can put ...@@ -104,12 +104,16 @@ If you don’t want to type this command every time you run Octave, you can put
## Using Dynare with Octave ## Using Dynare with Octave
1. Download and install the [latest Dynare package](/download#stable) 1. Install [Homebrew](https://brew.sh/)
1. Download and install the [Octave app for macOS](https://octave-app.org). Be 1. Install Dynare (and Octave) by typing the following in a terminal:
careful to install the Octave version that is compatible with the Dynare ```
package you downloaded (as indicated on the Dynare download page) brew install dynare
1. Open Octave ```
1. Install some Octave add-ons (you only have to do it once) 1. Open Octave by running the following in a terminal:
```
octave --gui
```
1. Install some Octave add-ons from the Octave prompt (you only have to do it once)
``` ```
>> pkg install -forge io statistics control struct optim >> pkg install -forge io statistics control struct optim
``` ```
...@@ -148,26 +152,24 @@ You will only have to do this once as MATLAB will remember the setting the next ...@@ -148,26 +152,24 @@ You will only have to do this once as MATLAB will remember the setting the next
## Configuring Octave for Dynare on macOS ## Configuring Octave for Dynare on macOS
If you have Dynare installed in the standard location type the following at the Octave command prompt, replacing `4.x.y` with your Dynare version: Type the following at the Octave command prompt:
```
>> addpath /Applications/Dynare/4.x.y/matlab
```
For example, for Dynare {{ dynare_stable_version }} type:
``` ```
>> addpath /Applications/Dynare/{{ dynare_stable_version }}/matlab >> addpath /usr/local/lib/dynare/matlab
``` ```
If you don’t want to type this command every time you run Octave, you can put If you don’t want to type this command every time you run Octave, you can put
it in a file called `.octaverc` in your home directory. This file will usually it in a file called `.octaverc` in your home directory. This file will usually
be called `/home/USERNAME/.octaverc`. be called `/Users/USERNAME/.octaverc`.
## Running and editing a Dynare example on macOS ## Running and editing a Dynare example on macOS
1. Create a working directory that will hold your Dynare models. For example, `/home/USERNAME/work`. 1. Create a working directory that will hold your Dynare models. For example, `/Users/USERNAME/work`.
1. Assuming that you are using Dynare {{ dynare_stable_version }}, copy the example model file `/Applications/Dynare/{{ dynare_stable_version }}/examples/example1.mod` to your working directory. 1. Assuming that you are using Dynare {{ dynare_stable_version }}, copy the
example model file (either `/Applications/Dynare/{{ dynare_stable_version }}/examples/example1.mod` or `/usr/local/lib/dynare/examples/example1.mod`)
to your working directory.
1. At the MATLAB or Octave command prompt, type the following to change the working directory: 1. At the MATLAB or Octave command prompt, type the following to change the working directory:
``` ```
>> cd /home/USERNAME/work >> cd /Users/USERNAME/work
``` ```
1. Then type the following to run the example model file: 1. Then type the following to run the example model file:
``` ```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment