我来自 python 背景,正在学习 ruby。IPython 真的很棒。我现在是 ruby 的新手,想要一些 ipython 的东西。截至目前,我正经历着艰难的时期,沿着红宝石线前进。似乎有点烦人,当按 Tab 不能完成事情时。我遇到了这个问题并遵循了第一个答案,获得了最多的支持。
它说要做require 'irb/completion'
我做了同样的事情,并得到以下错误:
LoadError: cannot load such file -- readline
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from (irb):1
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
然后我尝试require 'completion'
了最终导致以下错误:
LoadError: cannot load such file -- completion
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from (irb):3
from /home/letsrock/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
让我知道出了什么问题,我使用的是 ubuntu 11.04。