- **(On OS X 10.7 Only)** Copy [FlexLexer.h](http://www.dynare.org/build/FlexLexer.h) into the `preprocessor` directory (there was an error in the `FlexLexer.h` file distributed with 10.7)
- **NB**: If compiling Dynare documentation, add ```--with-doc``` to the installation command
- Ensure `/usr/local/bin` is at the beginning of your path:
- **NB**: If not compiling Dynare mex files for Octave, add ```--without-octave``` to the installation command
- ```PATH=/usr/local/bin:$PATH```
- **NB**: To compile the latest stable version of dynare, follow the same instructions as above, omitting the ```--HEAD``` argument
- Finally, switch to the root dynare directory and compile dynare
- Once compilation is done, open Matlab and type the last line shown when you type ```brew info dynare``` in the Terminal window. With the typical Homebrew setup, this is:
- `make pdf TEXI2DVI=/usr/local/Cellar/texinfo/5.2/bin/texi2dvi`, where you replace everything after the equal sign with the path to the `texi2dvi` installed by homebrew when you installed `texinfo`.