Skip to content

OSXInstallation

Rob Thornton edited this page Aug 4, 2024 · 4 revisions

Mac OSX Installation Instruction

Install pkg-config

Both Homebrew and MacPorts 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 - includes the .pc files required for pkg-config support of ncurses. Use this version for the easiest setup.
  • Homebrew - 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 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.