Forum: Rails France GEM EVENTMACHINE prob d'installation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A15aa2af13770dfc11b257699d7d3288?d=identicon&s=25 Thomas Tomtom (tombabibel)
on 2010-06-08 15:47
Bonjour,

je suis sous mac OS X Léopard.
ruby 1.8.6
rails Rails 2.3.5


j'ai un soucis avec la gem event machine. Lorsque que je tape la ligne
de commande sudo gem install eventmachine ca me marque :

WARNING:  RubyGems 1.2+ index not found for:
  http://rubygems.org/

RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://rubygems.org/
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    Error fetching remote gem cache: SocketError: getaddrinfo: nodename
nor servname provided, or not known (http://rubygems.org/yaml)


Alors j'ai téléchargé eventmachine de télécharger et essayé de
l'installé avec setup.rb et voici le résultat :

---> lib
---> lib/em
---> lib/em/protocols
<--- lib/em/protocols
<--- lib/em
---> lib/evma
<--- lib/evma
<--- lib
---> ext
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
/Users/thoams/Sites/eventmachine/ext/extconf.rb
can't find header files for ruby.
setup.rb:655:in `command':
system("/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
"/Users/thoams/Sites/eventmachine/ext/extconf.rb") failed (RuntimeError)
  from setup.rb:660:in `ruby'
  from setup.rb:1238:in `extconf'
  from setup.rb:1230:in `config_dir_ext'
  from setup.rb:1532:in `__send__'
  from setup.rb:1532:in `traverse'
  from setup.rb:1549:in `dive_into'
  from setup.rb:1530:in `traverse'
  from setup.rb:1524:in `exec_task_traverse'
  from setup.rb:1519:in `each'
  from setup.rb:1519:in `exec_task_traverse'
  from setup.rb:1223:in `exec_config'
  from setup.rb:991:in `exec_config'
  from setup.rb:812:in `invoke'
  from setup.rb:773:in `invoke'
  from setup.rb:1578


Avez vous une solution pour que je puisse installer cette gem
correctement merci.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2010-07-02 00:52
Thomas Tomtom wrote:
> WARNING:  RubyGems 1.2+ index not found for:
>   http://rubygems.org/

Ça donne quoi:
$ gem -v
This topic is locked and can not be replied to.