# Mac OSX Installation Instruction ## Install pkg-config Both [Homebrew](http://brewformulas.org/Pkg-config) and [MacPorts](https://www.macports.org/ports.php?by=library&substr=pkgconfig) have pkg-config. ## Install ncurses Tthe latest version of ncurses at the time of writing is 6.0 and is backwards compatible with 5.9. Either is fine though goncurses has been mainly tested against 5.9. * [MacPorts](https://www.macports.org/ports.php?by=library&substr=ncurses) - includes the .pc files required for pkg-config support of ncurses. Use this version for the easiest setup. * [Homebrew](https://github.com/Homebrew/homebrew-dupes) - **See Below** **Warning** - Homebrew does not install ncurses with pkg-config support. You will need to do some work to set this up or make some changes to goncurses. This [blog](http://mrcook.uk/how-to-install-go-ncurses-on-mac-osx) describes how to setup this version for pkg-config but use at your own risk. ## Install Goncurses `$ go get github.com/rthornton128/goncurses` ## Potential issues with Homebrew or M1s Homebrew may not install `pkg-config` files for `ncurses` libraries. In such an event, `goncurses` will fail to build as it utilizes `pkg-config` to find the C libraries when binding them. A potential solution/workaround can be found in this [issue comment](https://github.com/rthornton128/goncurses/issues/69#issuecomment-1278196459).