hadoop@lypc:~$ rvm list
rvm rubies
=* ruby-1.9.3-p547 [ x86_64 ]
ruby-2.0.0-p481 [ x86_64 ]
# => - current
# =* - current && default
# * - default
hadoop@lypc:~$ gem install debase
Building native extensions. This could take a while...
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
/home/hadoop/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
make clean
make
compiling breakpoint.c
In file included from breakpoint.c:1:0:
./debase_internals.h:5:24: 致命错误: ruby/debug.h:没有那个文件或目录
编译中断。
make: *** [breakpoint.o] 错误 1
make failed, exit code 2
Gem files will remain installed in /home/hadoop/.rvm/gems/ruby-1.9.3-p547/gems/debase-0.0.9 for inspection.
Results logged to /home/hadoop/.rvm/gems/ruby-1.9.3-p547/extensions/x86_64-linux/1.9.1/debase-0.0.9/gem_make.out
我现在用的 ruby 是:1.9.3,安装报错 如果把环境切换到 2.0.0,就没有问题, 请问,如何解决这个问题?