108
108

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Ruby] pryやirbで日本語入力を可能にする

Posted at

rbenv利用時の場合

# 適用したいrubyバージョンが既にインストール済みの場合は一度uninstall
$ rbenv uninstall 2.1.1

# readlineのinstall
$ brew install readline
$ brew link readline --force

# readlineを利用してruby再install
$ RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)"
$ rbenv install 2.1.1

これで日本語入力可能に。

$ pry
[1] pry(main)> 'ぷらい'
=> "ぷらい"

$ irb
irb(main):001:0> 'あいあーるびー'
=> "あいあーるびー"

rvmの場合

以下の記事が参考になりそうです!

irbやpryで日本語を入力できるようにする
http://www.iwazer.com/~iwazawa/diary/2012/03/irbpry.html

108
108
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
108
108

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?