just got the error message after all this step
brew info dynare
homebrew/science/dynare: stable 4.4.3 (bottled), HEAD
Platform for economic models, particularly DSGE and OLG models
http://www.dynare.orgNot installed
From: 
https://github.com/Homebrew/homebrew-sc ... /dynare.rb==> Dependencies
Build: boost ✔, cweb ✔, xz ✔
Required: matlab2tikz ✔, fftw ✔, gsl ✔, hdf5 ✔, libmatio ✔, metis ✔, readline ✔, veclibfort ✔, suite-sparse ✘
Recommended: octave ✘
==> Requirements
Build: tex ✔
Required: fortran ✔
Optional: tex ✔
==> Options
--with-matlab-version=
	Matlab version, e.g., 8.2 (to build mex files)
--with-matlab=
	Path to Matlab root directory (to build mex files)
--with-tex
	Build documentation
--without-octave
	Build without octave support
--HEAD
	Install HEAD version
==> Caveats
To get started with dynare, open Matlab or Octave and type:
        addpath /usr/local/opt/dynare/lib/dynare/matlab
10-232-80-132:~ fabriceanicetparfaitdabire$ brew install dynare --with-matlab=/Applications/MATLAB_R2017a.app --with-matlab-version=9.2 --without-check
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/science).
==> New Formulae
heimdal      lapack       make         openldap     openssh      tcl-tk
==> Updated Formulae
afl-fuzz                                 homebrew/science/lumpy-sv
app-engine-java                          homebrew/science/mir-prefer
arangodb                                 homebrew/science/orocos-kdl
aws-sdk-cpp                              homebrew/science/picard-tools
awscli                                   jboss-forge
bit                                      jetty
cake                                     kubernetes-cli
chromedriver                             mercurial
fabio                                    node-build
fio                                      node@4
flow                                     node@6
gollum                                   npth
gotags                                   paket
gpa                                      prettyping
homebrew/science/adam                    pypy
homebrew/science/afra                    solr
homebrew/science/circlator               stern
homebrew/science/dlib                    syncthing
homebrew/science/genometools             tgui
==> Deleted Formulae
srm
==> Installing dynare from homebrew/science
Error: You must `brew link ghostscript` before homebrew/science/dynare can be installed
10-232-80-132:~ fabriceanicetparfaitdabire$