# Running Dynare++ on Mac

**URL:** https://forum.dynare.org/t/running-dynare-on-mac/1808
**Category:** Dynare++
**Created:** [21 January 2011 14:49 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808 "2011-01-21T14:49:23Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![xuenanli](https://forum.dynare.org/letter_avatar_proxy/v4/letter/x/71c47a/32.png) [@xuenanli](https://forum.dynare.org/u/xuenanli)
#### Post date: [21 January 2011 14:49 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/1 "2011-01-21T14:49:23Z")

</div>

Greetings,

I have installed Dynare 4.1.3 on Mac OS X 10.5.8, following the instruction online. Dynare runs perfectly fine. But whenever I type  
dynare++ filename.mod  
in Matlab, I get the error message  
??? Error using ==\> dynare Too many output arguments.  
I also tries to run Dynare++ in the command prompt and have copied the executive file dynare++ into the directory where I put my mod file. But I still get the error message:  
-bash: dynare++: command not found

Maybe I was doing it in the wrong way. I have read the online manual but it doesn’t give a detailed instruction, especially for the Mac version. Any help will be greatly appreciated!

Best,  
Erica

---

<div class="post-metadata">

### Author: ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)
#### Post date: [21 January 2011 15:06 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/2 "2011-01-21T15:06:32Z")

</div>

Dear Erica,

For the cleanest solution, instead of copying the dynare++ executable into the directory in which you’re working, please try the following:

1. Open Terminal (Applications-\>Utilities-\>Terminal.app)
2. At the command prompt type: `cd <<the directory in which your .mod file is located>>` and hit enter
3. At the command prompt type (on the standard Mac installation): `/Applications/Dynare/4.1.3/dynare++/dynare++ <<filename.mod>>`and hit enter. If your installation is nonstandard, replace `/Applications/Dynare/4.1.3/` with the path to your root dynare directory.

NB: you can also copy the dynare++ executable into your working directory. In this case, you would need to issue the following command: `./dynare++ <<filename.mod>>`

Either method should produce the files described in section 7 of the dynare++ tutorial. If it does not, please respond with your .mod file.

You are right, we should update the manual with instructions for Mac.

Best,  
Houtan

---

<div class="post-metadata">

### Author: ![xuenanli](https://forum.dynare.org/letter_avatar_proxy/v4/letter/x/71c47a/32.png) [@xuenanli](https://forum.dynare.org/u/xuenanli)
#### Post date: [21 January 2011 15:30 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/3 "2011-01-21T15:30:22Z")

</div>

Dear Houtan,

It works now! Thanks so much for your help!

Best,  
Erica

---

<div class="post-metadata">

### Author: ![vero\_acurio](https://forum.dynare.org/letter_avatar_proxy/v4/letter/v/898d66/32.png) [@vero\_acurio](https://forum.dynare.org/u/vero_acurio)
#### Post date: [6 February 2013 17:31 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/4 "2013-02-06T17:31:02Z")

</div>

Hello,

I have a .mod which works with the normal dynare command.

I’m trying to compile the same file with dynare++ I have follow your instructions but then I have the following error message in the terminal:

Caught Dynare exception: Parse error at BGCalvo, line 1, column 101: syntax error, unexpected $end, expecting PARAMETERS or VAR or VAREXO

Could you help me please?

Best Regards,

Veronica

---

<div class="post-metadata">

### Author: ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)
#### Post date: [7 February 2013 13:00 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/5 "2013-02-07T13:00:25Z")

</div>

I guess you’re missing a semicolon.

If you want more help than that, you need to:

1. Tell me the version of Mac OS X you’re using
2. Tell me the version of Dynare you’re using (if it’s not 4.3.2, I will first ask you to upgrade)
3. Post the .mod file that is producing the problem.

---

<div class="post-metadata">

### Author: ![michelino1982](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@michelino1982](https://forum.dynare.org/u/michelino1982)
#### Post date: [19 August 2013 15:17 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/6 "2013-08-19T15:17:18Z")

</div>

I use dynare++ on daily basis. I wrote many models during the last 10 months. Everything is ok.

I bought a mac two months ago. Nevertheless, I am still using my old laptop with windows.  
When I try to run dynare++ I get the following error:

/bin/bash: dynare++: command not found

I tried the suggested procedure, but I still have the problem. Can someone give me some help?

---

<div class="post-metadata">

### Author: ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)
#### Post date: [14 October 2013 08:58 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/7 "2013-10-14T08:58:22Z")

</div>

This means that the folder containing the dynare++ executable is not in your PATH variable. At the terminal prompt, type:

```auto

```

And try to execute dynare++ again.

---

<div class="post-metadata">

### Author: ![shifeixuxu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@shifeixuxu](https://forum.dynare.org/u/shifeixuxu)
#### Post date: [3 April 2014 05:14 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/8 "2014-04-03T05:14:20Z")

</div>

I have done all the above suggestions, but still got a problem. It says

dyld: Library not loaded: /usr/local/lib/libmatio.2.dylib  
Referenced from: /Applications/Dynare/4.4.2/dynare++/dynare++  
Reason: image not found  
Trace/BPT trap: 5

Could you help me on this?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)
#### Post date: [3 April 2014 08:06 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/9 "2014-04-03T08:06:19Z")

</div>

This means that dynare++ was compiled with a shared matio library and not the static one.

If you need to use it soon, I would recommend you download Homebrew ([brew.sh/](http://brew.sh/)) and install the matio package.

Otherwise, you can try the dynare++ executable from 4.4.1 or 4.4.0 as nothing has changed between these versions. Just copy and paste /Applications/Dynare/4.4.0/dynare++/dynare++ into /Applications/Dynare/4.4.2/dynare++/.

I’ll make a new package sometime next week to fix this, so if you want to wait and download it directly you can wait until then. I’ll post a response here once I have made it.

---

<div class="post-metadata">

### Author: ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)
#### Post date: [10 April 2014 10:17 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/10 "2014-04-10T10:17:00Z")

</div>

Here’s the dynare++ binary from the 4.4.0 build.  
[dynare.org/houtan/download/dynare++](http://www.dynare.org/houtan/download/dynare++)  
You can download it and copy it into the /Applications/Dynare/4.4.3/dynare++/ folder. If it doesn’t work, please let me know.

---

<div class="post-metadata">

### Author: ![anshul](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@anshul](https://forum.dynare.org/u/anshul)
#### Post date: [13 June 2022 11:57 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/11 "2022-06-13T11:57:43Z")

</div>

I am also trying to run Dynare++ on Mac but it’s not running. The mod file runs successfully in Dynare but Matlab is not calling Dynare++. It shows “too many arguments error”. I tried all instructions provided on this forum but failed every time.  
It would be helpful for me and for many others if someone writes down the steps to follow.

---

<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: [13 June 2022 16:00 UTC](https://forum.dynare.org/t/running-dynare-on-mac/1808/12 "2022-06-13T16:00:59Z")

</div>

@wmutschl Have you tried this?
