Install Ruby with readline supported on Mac

2013-09-26 22:17

Just a memo for installing ruby on Mac OSX with the feature of typing Chinese under ruby console.

brew install readline ruby-build
RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 1.9.3-p286

or to use pure Ruby readline

group :development do
  gem 'rb_readline'
end

ref: https://github.com/guard/guard/wiki/Add-Readline-support-to-Ruby-on-Mac-OS-X

除非注明,文章均为 wongyouth 原创,转载请注明本文地址:http://wongyouth.com/blog/2013/09/26/install-ruby-with-readline-supported-on-mac/
  • 关于我
  • 破而后立 系统架构师
    全栈式 Rails 开发者
    最近折腾了一些前端框架
    关注 Web,移动,创业
  • 近期评论
    • 使用手机阅读或分享至微信朋友圈