# Dynare++ on MAC

**URL:** <https://forum.dynare.org/t/dynare-on-mac/3958>\
**Category:** Dynare help (legacy posts)\
**Created:** [9 June 2014 22:07 UTC](https://forum.dynare.org/t/dynare-on-mac/3958 "2014-06-09T22:07:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Co](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@Alex\_Co](https://forum.dynare.org/u/Alex_Co)\
**Post date:** [9 June 2014 22:07 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/1 "2014-06-09T22:07:38Z")

</div>

Dear Dynare community,

I have been trying to have my Dynare++ codes work on my MAC but without success. I always get the following error: /bin/bash: dynare++: command not found

I tried to do as suggested in the following post([Running Dynare++ on Mac](https://forum.dynare.org/t/running-dynare-on-mac/1808/1)) by adding Dynare++ to your PATH variable but the error persists.

Any help how to solve this?

Thanks a lot

Alex

---

<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 June 2014 10:25 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/2 "2014-06-10T10:25:53Z")

</div>

In the terminal type:

```auto

```

and post the output.

Otherwise, you can just copy dynare++ to your current directory and run it from there.

---

<div class="post-metadata">

**Author:** ![Alex\_Co](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@Alex\_Co](https://forum.dynare.org/u/Alex_Co)\
**Post date:** [27 July 2014 21:24 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/3 "2014-07-27T21:24:23Z")

</div>

Hi Houtan,

Sorry for the late reply. I’ve been running the codes on remote desktop since the MAC ones still don’t work, even if I put the Dynare++ and dynare\_simul in the same directory. The error is “/bin/bash: dynare++: command not found”. Any idea why?

Thanks

---

<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:** [28 July 2014 08:40 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/4 "2014-07-28T08:40:36Z")

</div>

Yes. dynare++ is not being found in your path. Please follow the directions in my previous post by posting the result of `echo $PATH` If you are running it from your current directory and the current directory is not in your path, you will need to invoke dynare++ by typing:

```auto

```

---

<div class="post-metadata">

**Author:** ![sasha](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@sasha](https://forum.dynare.org/u/sasha)\
**Post date:** [2 October 2014 13:15 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/5 "2014-10-02T13:15:48Z")

</div>

Hi,

I have a similar problem. I am trying to execute several .mod file into a loop using Dynare++. I always get “/bin/bash: dynare++: command not found” even if I tried to define Dynare++ in my path and put the Dynare++ exe in the current file.

Your help is much appreciated.

Cheers

Sasha

---

<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:** [2 October 2014 13:24 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/6 "2014-10-02T13:24:06Z")

</div>

Where are you trying to run them from? The terminal? Matlab? Is your loop a bash script? If not, what programming language?

---

<div class="post-metadata">

**Author:** ![sasha](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@sasha](https://forum.dynare.org/u/sasha)\
**Post date:** [2 October 2014 13:28 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/7 "2014-10-02T13:28:13Z")

</div>

I am calling them from Matlab using the following line (it worked in Windows)  
!dynare++ --no-irfs model.mod

Thanks

---

<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:** [2 October 2014 14:30 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/8 "2014-10-02T14:30:18Z")

</div>

And, what happens if in Matlab, you do the following, with dynare++ in your current directory:

```auto

```

---

<div class="post-metadata">

**Author:** ![sasha](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@sasha](https://forum.dynare.org/u/sasha)\
**Post date:** [2 October 2014 20:12 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/9 "2014-10-02T20:12:10Z")

</div>

Hi,

No it still doesn’t work, I get the following message: “/bin/bash: ./dynare++: No such file or directory”.  
Note that if I try dynare++.exe, I get the following message: “/bin/bash: ./dynare++.exe: Permission denied”.

Also, I tried the “echo $PATH”, I get  
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Dynare/4.4.2/dynare++:/opt/X11/bin:/usr/texbin

Is everything normal with that at least?

Thanks

---

<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 October 2014 08:16 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/10 "2014-10-03T08:16:50Z")

</div>

First, dynare++.exe doesn’t make sense on a mac as .exe files only work on windows.

Please just do the following.

1. Make a new directory in your home folder called dpp
2. Copy the dynare++ executable and your .mod file to the dpp folder
3. Open Terminal
4. In Terminal type: cd ~/dpp
5. In Terminal type: ./dynare++ --no-irfs model.mod

This should work. If it doesn’t, in Terminal type:

1. ls -la
2. pwd

and send the output.

---

<div class="post-metadata">

**Author:** ![Camron70](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/51bf81/32.png) [@Camron70](https://forum.dynare.org/u/Camron70)\
**Post date:** [20 October 2014 17:22 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/11 "2014-10-20T17:22:20Z")

</div>

I have a similar problem. I am trying to execute several .mod file into a loop using Dynare++. I always get “/bin/bash: dynare++: command not found” even if I tried to define Dynare++ in my path and put the Dynare++ exe in the current file. 😆

---

<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 October 2014 09:33 UTC](https://forum.dynare.org/t/dynare-on-mac/3958/12 "2014-10-21T09:33:26Z")

</div>

Please post the program you use to run dynare++ in a loop along with your .mod files
