Je suis actuellement en train d'exécuter Ruby 1.9.2p0 sur un ordinateur Windows XP 32 bits. Depuis que nous avons mis à niveau vers Ruby 1.9, je n'arrive pas du tout à faire du débogage. On m'a dit que vous aviez besoin de la nouvelle gemme ruby-debug19 pour faire fonctionner les choses. Le problème est que le proxy de ma société empêche le gestionnaire de dépendances gem de connecter des référentiels externes. C'est bon, je vais juste télécharger la gemme moi-même et l'installer localement. Les résultats:Installation de ruby-debug19 localement
ERROR: Error installing ruby-debug19-0.11.6.gem:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb --with-ruby-include=C:\Ruby192\include
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=C:/Ruby192/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (Errno::ETIMEDOUT)
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `open'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `block in connect'
from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `connect'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1160:in `request'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:239:in `block in read'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:286:in `connect'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:234:in `read'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:128:in `download'
from C:/Ruby192/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 C:/Ruby192/lib/ruby/1.9.1/tempfile.rb:320:in `open'
from C:/Ruby192/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-p0.tar.gz
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out
Peut-être que je fais des hypothèses déraisonnables que je suis assez nouveau pour Ruby, mais il ne ressemble le script d'installation tente de se connecter un référentiel externe pour saisir quelque chose. Si c'est le cas, c'est absurde, pourquoi est-ce que j'installerais localement une gemme si j'étais capable de le faire avec le gestionnaire automatiquement? Est-ce que quelqu'un sait d'une façon que je peux installer un débogueur d'une manière purement locale, hors ligne? J'apprécie toute aide.
Nice! Toujours en train de travailler un an plus tard! –
aidez-moi s'il vous plaît ... je ne trouve pas les fichiers * .inc dans mon répertoire ruby :-( –
Est-ce que votre répertoire ruby extrait du dépôt source, par exemple http://svn.ruby-lang.org/repos/ruby/ branches/ruby_1_9_2? – Roman