Skip to content

Instantly share code, notes, and snippets.

@mscalora
Created October 28, 2017 13:33
Show Gist options
  • Save mscalora/767ac777765630c06fe65c897b4170a2 to your computer and use it in GitHub Desktop.
Save mscalora/767ac777765630c06fe65c897b4170a2 to your computer and use it in GitHub Desktop.
Building nano editor from source recipe for mac and debian ubuntu mint

build nano

nano build dependencies

on a generic Debian distro

sudo apt-get install autoconf autopoint automake gettext git groff pkg-config texinfo gcc make libncursesw5-dev

on a mac

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

getting the source from git repo

git clone https://git.savannah.gnu.org/git/nano.git

autogen

./autogen.sh

configure

./configure

make

make

run

src/nano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment