我是Ruby的初学者。今天我试着建立一个开发环境。因此我安装了rvm并使用ruby和rails。作为IDE,我决定使用Netbeans(7.0)。 现在,我已经(几个小时......)调试一个简单的测试文件,但它没有工作。 IDE已经让我安装了快速调试器,但由于某些错误,无法完成此操作。 (它告诉我它无法构建gem原生扩展) 如果我尝试使用正常(=缓慢的debuger),根本没有任何事情发生。 以下是安装失败的输出:
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
*** 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
--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=/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- openssl (LoadError)
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:11:in `<top (required)>'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:6:in `<top (required)>'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from extconf.rb:2:in `<main>'
如果您有疑问:在涉及红宝石时,我是DAU ......
答案 0 :(得分:0)
Netbeans 7.0放弃了对Ruby的支持 - http://www.infoq.com/news/2011/01/ruby-dropped-in-netbeans-7
Boo Netbeans !!!!!我使用6.9一段时间,如果你能得到一份副本肯定有用吗?
我个人使用Sublime Text 2与guard package&amp; /或终端这些天。很多人也使用Textmate,Vim或Emacs。