如何安装“readline”用于导轨控制台

发布于 2024-12-02 05:52:01 字数 778 浏览 1 评论 0原文

好吧,我正在尝试运行“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沫雨熙 2024-12-09 05:52:01

我知道已经太晚了。

没有要加载的文件 - 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.)

岁月打碎记忆 2024-12-09 05:52:01

rvm package 已更改为 rvm pkg

如果错误只是告诉我们这一点,那就太好了!啊!

rvm package has been changed to rvm pkg

It would be nice if the error just told us this! Ugh!

享受孤独 2024-12-09 05:52:01
$ rvm uninstall 1.8.7
$ rvm package install readline
$ rvm install 1.8.7 -C –with-readline-dir=$HOME/.rvm/usr

http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-支持-irb/

$ rvm uninstall 1.8.7
$ rvm package install readline
$ rvm install 1.8.7 -C –with-readline-dir=$HOME/.rvm/usr

http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文