How do I compile Readline support into Ruby
My version of ruby was com开发者_如何学JAVApiled with editline
(on os x) and I miss the features of readline
in irb
.
How do I recompile ruby with readline
support?
- Install
readline
to/usr/local
- Recompile ruby from scratch and use the
--with-readline-dir=/usr/local
switch
or if you have downloaded the ruby sources earlier and built it by hand,
- Go to the
ext/readline
folder of your ruby source tree - Type
ruby extconf.rb
and then run themake && make install
procedure for ruby.
There's also a pure ruby readline.
精彩评论