Skip to content

Instantly share code, notes, and snippets.

@matsuda
Created October 12, 2011 07:12
Show Gist options
  • Save matsuda/1280514 to your computer and use it in GitHub Desktop.
Save matsuda/1280514 to your computer and use it in GitHub Desktop.
install readline by Homebrew
$ brew install readline
==> Downloading http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file vi_mode.c
patching file callback.c
==> ./configure --prefix=/usr/local/Cellar/readline/6.2.1 --mandir=/usr/local/Cellar/readline/6.2.1/share/man --infodir=/usr/local/Cellar/readline/6.2.1/share/info --enable-multibyte
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS -L/usr/local/Cellar/readline/6.2.1/lib
CPPFLAGS -I/usr/local/Cellar/readline/6.2.1/include
==> Summary
/usr/local/Cellar/readline/6.2.1: 28 files, 1.6M, built in 15 seconds
$ brew link readline
Linking /usr/local/Cellar/readline/6.2.1... 13 symlinks created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment