• [^] # Re: echec de hpricot

    Posté par . En réponse au message extraction sur page html. Évalué à 1.

    le $sudo apt-get install ruby
    ne marche pas, il me montre que ruby1.8 et 1.6 et 1.9

    j'aurai du pense au lien symbolique
    j'avais plus d'idee. maintenant j'ai les erreurs suivante:

    apres creation du lien symbolique

    $ sudo gem install hpricot
    Select which gem to install for your platform (i486-linux)
    1. hpricot 0.5.150 (mswin32)
    2. hpricot 0.5.150 (ruby)
    3. hpricot 0.5.150 (jruby)
    4. hpricot 0.5.145 (ruby)
    5. hpricot 0.5.145 (jruby)
    6. hpricot 0.5.145 (mswin32)
    7. Skip this gem
    8. Cancel installation
    > 4
    Building native extensions. This could take a while...
    ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

    ruby extconf.rb install hpricot
    extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1


    Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.5.145 for inspection.
    Results logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.5.145/ext/hpricot_scan/gem_make.out


    Ah j'ai pas de chance aujourd'hui.