2

我已经安装了新版本的 ruby​​ - 1.9.3-p125,然后我遇到了 pry 的问题

/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:11: warning: already initialized constant DEFAULT_HOOKS
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:22: warning: already initialized constant DEFAULT_PRINT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:47: warning: already initialized constant SIMPLE_PRINT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:56: warning: already initialized constant CLIPPED_PRINT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:61: warning: already initialized constant DEFAULT_EXCEPTION_HANDLER
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:67: warning: already initialized constant DEFAULT_EXCEPTION_WHITELIST
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:70: warning: already initialized constant DEFAULT_PROMPT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:81: warning: already initialized constant SIMPLE_PROMPT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:83: warning: already initialized constant SHELL_PROMPT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:90: warning: already initialized constant NAV_PROMPT
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:106: warning: already initialized constant DEFAULT_CONTROL_D_HANDLER
/home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:120: warning: already initialized constant DEFAULT_SYSTEM
/home/megas/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- readline (LoadError)
    from /home/megas/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/lib/pry.rb:163:in `<top (required)>'
    from /home/megas/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/megas/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/bin/pry:12:in `rescue in <top (required)>'
    from /home/megas/.rvm/gems/ruby-1.9.3-p125/gems/pry-0.9.8.2/bin/pry:8:in `<top (required)>'
    from /home/megas/.rvm/gems/ruby-1.9.3-p125/bin/pry:19:in `load'
    from /home/megas/.rvm/gems/ruby-1.9.3-p125/bin/pry:19:in `<main>'

我试图通过这篇文章解决这个问题,但在make命令之后我得到了答案

Nothing to be done for `all’

如何解决这个问题?谢谢

PS Ubuntu 11.10, 64 位

4

1 回答 1

3

嘿 megas 你安装了 lncurses 吗?如果不尝试:

sudo apt-get install libncurses5-dev libreadline5-dev

从this Blogpost中得到它似乎与您的问题有一些相似之处。

解决方案:

rvm uninstall 1.9.3-p125
sudo apt-get install libreadline-dev
rvm install 1.9.3-p125 --with-readline-dir=/usr/include/readline
于 2012-02-29T19:21:29.187 回答