如何安装“readline”用于导轨控制台
好吧,我正在尝试运行“rails console”命令,但这就是我得到的:
/home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
from /home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3:in `require'
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37:in `require'
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37
from script/rails:6:in `require'
from script/rails:6
如何安装“readline”并使其工作?
ok i am trying to run "rails console" command but here's what i get:
/home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
from /home/user/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/irb/completion.rb:10
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3:in `require'
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands/console.rb:3
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37:in `require'
from /home/user/.rvm/gems/ruby-1.8.7-p352/gems/railties-3.1.0/lib/rails/commands.rb:37
from script/rails:6:in `require'
from script/rails:6
how can I install "readline" and make it work ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我知道已经太晚了。
没有要加载的文件 - readline (LoadError)
尝试将
gem 'rb-readline'
添加到您的 Gemfile 中。)I know it is too late.
no such file to load -- readline (LoadError)
try adding
gem ’rb-readline’
to your Gemfile.)rvm package 已更改为 rvm pkg
如果错误只是告诉我们这一点,那就太好了!啊!
rvm package has been changed to rvm pkg
It would be nice if the error just told us this! Ugh!
http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-支持-irb/
http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/