2011-10-18 18 views
2

Ruby 1.9.2を使用している私のレール3.1.1アプリケーションにデバッガを追加しようとしています。debug rails 3.1.1 application

gem 'ruby-debug19', :require => 'ruby-debug' 

を、私は次のエラーを取得:私は私のgemfileに以下を追加している私は、次のを持っている方法によって

/.rvm/gems/[email protected]/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:55:in `block (2 levels) in initialize': uninitialized constant Debugger::LocalInterface::Readline (NameError) 

を:

$ ruby -v 
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] 
$ rails -v 
Rails 3.1.1 
$ rvm -v 
rvm 1.8.6 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/] 

答えて

0

すべてインストールしました前提条件はRubyをインストールする前にrvm notesに記載されていますか?私は肯定的ではないが、私はreadlineがLinuxのMRIに依存していると思う。

またthese instructions from the RVM siteに従うことがあります。

If you have an error when compiling pertaining to readline, you may need to attempt installing with the procedure defined below.

NOTE: Before you follow the procedure below please be sure to verify that you have installed any dependencies for the Ruby you are installing listed by the 'rvm notes' command. If you have not yet done that do so then run 'rvm remove X ; rvm install X' where X is the Ruby that you are concerned with.

$ rvm pkg install readline 
$ rvm remove 1.9.2 
$ rvm install 1.9.2 --with-readline-dir=$rvm_path/usr 
+0

おかげでエラーがに変更: 'あなたはルビーをインストールする必要がありますデバッグモードでサーバーを実行する-debug 'gem install ruby​​-debug'を使用してください。 'Exiting' – GTDev

+0

これでgemをインストールできるようになりましたので、プロジェクトで' bundle install'を実行してください。 –

+0

これは何も変更されていないようです。RVM 1.2.5の場合は – GTDev

1

何作っことは私のための仕事ですが次のとおりです。迅速な対応のための

sudo gem install ruby-debug19 
gem install linecache19 
gem install ruby-debug-base19 
bundle update 
rails server -u 
関連する問題