gpt4 book ai didi

ruby - 无法使用 Netbeans 和 ubuntu 调试 ruby​​ 1.9.3

转载 作者:太空宇宙 更新时间:2023-11-03 16:55:27 26 4
gpt4 key购买 nike

我完全是 Ruby 的初学者。今天尝试搭建开发环境。因此我安装了 rvm 以及 ruby​​ 和 rails。作为 IDE,我决定使用 Netbeans (7.0)。现在我正在尝试(几个小时......)来调试一个简单的测试文件,但它不起作用。 IDE 让我安装快速调试器,但由于某些错误,无法安装。(它告诉我它未能构建 gem native 扩展)如果我尝试使用普通的(= 慢速调试器)什么也不会发生。这是安装失败的输出:

/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>'

如果您有疑问:说到 ruby​​,我是一个 DAU...。

最佳答案

Netbeans 7.0 放弃了对 Ruby 的支持 - http://www.infoq.com/news/2011/01/ruby-dropped-in-netbeans-7

嘘 Netbeans!!!!!我用了一段时间6.9,如果你能得到一个副本,那肯定可以?

我个人使用 Sublime Text 2guard package &/或这些天的终端。很多人也使用 Textmate、Vim 或 Emacs。

关于ruby - 无法使用 Netbeans 和 ubuntu 调试 ruby​​ 1.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11334914/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com