开发者

How do I compile Readline support into Ruby

开发者 https://www.devze.com 2022-12-12 00:33 出处:网络
My version of ruby was com开发者_如何学JAVApiled with editline (on os x) and I miss the features of readline in irb.

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

精彩评论

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

关注公众号