Instale o ruby-debug-ide no Snow Leopard rodando o Ruby 1.9.2

0

Estou tentando instalar o ruby-debug-ide no Snow Leopard executando o Ruby 1.9 para que eu possa depurar o código ruby no NetBeans.

Estou usando o seguinte comando

sudo gem install ruby-debug-ide19

No entanto, continuo recebendo o seguinte erro:

nathan:mark-moseley-ruby-debug-ide-9eb626b nathan$ sudo gem install ruby-debug-ide19

Criando extensões nativas. Isso vai demorar um pouco... ERRO: Erro ao instalar o ruby-debug-ide19:  ERRO: falha ao criar extensão nativa de gem.

/Users/nathan/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
*** 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=/Users/nathan/.rvm/rubies/ruby-1.9.2-head/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}/lib
/Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:268:in 'block (2 levels) in read': Looking for http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p160.tar.gz and all I got was a 404! (URI::NotFoundError)
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:1194:in 'block in transport_request'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:2342:in 'reading_body'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:1193:in 'transport_request'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:1177:in 'request'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:1170:in 'block in request'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:627:in 'start'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:1168:in 'request'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:239:in 'block in read'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:286:in 'connect'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:234:in 'read'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:128:in 'download'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:55:in 'block in create_makefile_with_core'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:320:in 'open'
 from /Users/nathan/.rvm/rubies/ruby-1.9.2-head/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:51:in 'create_makefile_with_core'
 from extconf.rb:20:in '<main>'
Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p160.tar.gz


Gem files will remain installed in /Users/nathan/.rvm/gems/ruby-1.9.2-head/gems/linecache19-0.5.11 for inspection.
Results logged to /Users/nathan/.rvm/gems/ruby-1.9.2-head/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out

Alguém sabe como posso instalá-lo?

Note que eu tenho o xcode mais recente instalado, mas instalei o Ruby 1.9 usando o RVM, que eu também usei para defini-lo como o ambiente padrão do Ruby.

    
por Naatan 22.01.2011 / 19:31

1 resposta

0

Resolvi sozinho instalando Ruby usando homebrew (brew install ruby). Parece que a versão RVM instala tem alguns problemas (eu experimentei a mesma coisa com várias gemas).

Eu tive que modificar manualmente os links simbólicos depois de instalar o Ruby com o homebrew, pois por padrão seu sistema ainda usaria o Ruby 1.8 que vem com o xcode.

    
por 22.01.2011 / 21:52