ruby mine调试错误:无法安装gem

时间:2015-02-21 09:12:20

标签: ruby remote-debugging rubymine

在RHEL 6.2环境中尝试在RubyMine-7.0.2 IDE上进行调试时,我遇到了错误。

failed to install gems. following gems were not installed.
/home/john/RubyMine-7.0.2/rb/gems/ruby-debug-base-0.10.5.rc10.gem: Error installing ruby-debug-base-0.10.5.rc10.gem.
ERROR:Failed to build gem native extension./usr/bin/ruby exconf.rb Ruby version 1.9.2 is too new *** exconf.rb failed 
couldnot 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 onfiguration reason. probably lack of neessary libraries and/or headers. check the mkmf.log file for more details.

除此之外,当我尝试通过执行以下命令安装gems时,我得到了像

这样的错误
_-bash: aptitude command not found.
-bash:apt-get command not found. 

安装rubygems的命令。

aptitude install libgemplugin-ruby
apt-get install libgemplugin-ruby

如果有人可以帮助我,我将不胜感激。

1 个答案:

答案 0 :(得分:0)

您正尝试在RHEL框中使用Ubuntu包实用程序(apt / aptitude)。只需按照正确的教程(例如this one)安装rubygems:

yum install rubygems