How to type Japanese on ruby console
Prepare
To check the current ruby version by rbenv :
rbenv versions
Todo
- First you have to install
readline
by homebrew :
brew install readline
- Reinstall Ruby Version, assume your current version is
2.3.1
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install 2.3.1
- Now, you can go to irb and type Japanese :)