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

メガさん、Incurses はインストールしましたか?試していない場合:

sudo apt-get install libncurses5-dev libreadline5-dev

あなたの問題に似ていると思われるこのブログ投稿からそれを得ました。

解決:

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 に答える