# Run with example1.mod by Dynare++

**URL:** <https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867>\
**Category:** Dynare++\
**Created:** [21 May 2020 09:28 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867 "2020-05-21T09:28:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ljw1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@Ljw1](https://forum.dynare.org/u/Ljw1)\
**Post date:** [21 May 2020 09:28 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/1 "2020-05-21T09:28:34Z")

</div>

Hello, I can run dynare code successfully but I failure to run dynare++ example code in my first try.

The Dynare++ Tutorial says the setup have two procedures:

1. Add the dynare++ subdirectory of the root Dynare installation directory to the your operating system path.
2. Add to your MATLAB path the dynare++ subdirectory of the root Dynare installation directory.

So I operate the first step according to [add-to-the-path-on-mac-os-x](https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/), and I finish the second step by add the matlab folder of dynare++ to the path.

I have set the current folder to the example folder where the mod-file is located. When I type the command `dynare++ example1.mod` in the matlab, it says `error using dynare, too many output arguments`. And the command `!dynare++ example1.mod` give a result `/bin/bash: dynare++: command not found`.

I am wondering how to address it. Thanks!

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [21 May 2020 13:56 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/2 "2020-05-21T13:56:13Z")

</div>

Are you operating from the command line or Matlab?

---

<div class="post-metadata">

**Author:** ![Ljw1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@Ljw1](https://forum.dynare.org/u/Ljw1)\
**Post date:** [21 May 2020 14:15 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/3 "2020-05-21T14:15:01Z")

</div>

Yes, I operate from Matlab. Actually, I also cannot successfully run mod file in command line(Terminal In mac OS).

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [21 May 2020 15:06 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/4 "2020-05-21T15:06:49Z")

</div>

The easiest thing usually is to have the dynare++ mod-file in the same folder as the dynare++ main file.

---

<div class="post-metadata">

**Author:** ![Ljw1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@Ljw1](https://forum.dynare.org/u/Ljw1)\
**Post date:** [21 May 2020 16:23 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/5 "2020-05-21T16:23:42Z")

</div>

Thank you professor Pfeifer, I’m not sure I got it and my trial fails again.

Since it’s my first time using dynare++, I have tried to follow Chapter 1 and 3(Dynare++ Tutorial) carefully but feel confused somewhat. Maybe my configuration was wrong at first.

I would really appreciate it if you could offer some other tutorials or commands on how to configure and run it for a beginner like me. I hope that won’t bother you.

Best, Jiawei

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 May 2020 12:08 UTC](https://forum.dynare.org/t/run-with-example1-mod-by-dynare/15867/6 "2020-05-24T12:08:29Z")

</div>

So what happens if you put the mod-file you are trying to run into the `Dynare++` folder of your Dynare installation and then run dynare++ from the terminal?
