Skip to content

Instantly share code, notes, and snippets.

@mscalora
Created August 28, 2017 13:52
Show Gist options
  • Save mscalora/65558b0c6105723fcf3dc5af12d622e7 to your computer and use it in GitHub Desktop.
Save mscalora/65558b0c6105723fcf3dc5af12d622e7 to your computer and use it in GitHub Desktop.
Steps to build nano on a modern macos system (in 2017)
##### Prerequisites
#
# * brew
# * xcode command line tools
#
### brew installs
brew install automake autoconf pkg-config gettext ncurses
### Add env vars - ~/.bashrc or ~/zshrc if you are a zsh user
export LDFLAGS='-L/usr/local/opt/ncurses/lib'
export CPPFLAGS='-I/usr/local/opt/ncurses/include'
### Add newer tools to path
export PATH=$PATH:/usr/local/opt/gettext/bin
export PATH=/usr/local/opt/texinfo/bin:$PATH
export PATH=/usr/local/opt/ncurses/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment