Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created August 25, 2010 07:08
Show Gist options
  • Save huacnlee/549007 to your computer and use it in GitHub Desktop.
Save huacnlee/549007 to your computer and use it in GitHub Desktop.
Ubuntu:
$ sudo apt-get install libreadline-dev
Mac:
$ brew install readline
Build readline for Ruby:
$ cd ~/.rvm/src/ruby-1.9.2-p0/ext/readline
$ ruby extconf.rb
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes
.............................
creating Makefile
$ make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment