へっぽこエンジニアの日誌

へっぽこエンジニアからのレベルアップをはかる

Debuggerのinstallに失敗した時の対処法

boxenとrbenv使用時にdebuggerのインストールでコケた。 以下がエラー内容。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.0.0-p353 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
     --with-opt-dir
     --without-opt-dir
     --with-opt-include
     --without-opt-include=${opt-dir}/include
     --with-opt-lib
     --without-opt-lib=${opt-dir}/lib
     --with-make-prog
     --without-make-prog
     --srcdir=.
     --curdir
     --ruby=/opt/boxen/rbenv/versions/2.0.0-p353/bin/ruby
     --with-ruby-dir
     --without-ruby-dir
     --with-ruby-include
     --without-ruby-include=${ruby-dir}/include
     --with-ruby-lib
     --without-ruby-lib=${ruby-dir}/

以下が対処法。

1
2
gem install debugger-ruby_core_source --no-rdoc --no-ri -- --with-ruby-include=/opt/boxen/rbenv/versions/2.0.0-p353
gem install debugger-linecache -- --with-ruby-include=/opt/boxen/rbenv/versions/2.0.0-p353

で、改めてdebuggerをインストールしなおす。