开发者

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?


  1. Install readline to /usr/local
  2. 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,

  1. Go to the ext/readline folder of your ruby source tree
  2. Type ruby extconf.rb and then run the make && make install procedure for ruby.


There's also a pure ruby readline.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜