sudo apt-get install autoconf autopoint automake gettext git groff pkg-config texinfo gcc make libncursesw5-dev
You will need brew
and the xcode
command line build tools
brew install automake autoconf pkg-config gettext ncurses
You will need to setup some shell vars in your .zshrc
or .bashrc
:
export LDFLAGS='-L/usr/local/opt/ncurses/lib'
export CPPFLAGS='-I/usr/local/opt/ncurses/include'
export PATH=$PATH:/usr/local/opt/gettext/bin
export PATH=/usr/local/opt/texinfo/bin:$PATH
export PATH=/usr/local/opt/ncurses/bin:$PATH
git clone https://git.savannah.gnu.org/git/nano.git
./autogen.sh
./configure
make
src/nano