IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Ruby Discussion :

installation environnement dev


Sujet :

Ruby

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2002
    Messages
    210
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2002
    Messages : 210
    Points : 87
    Points
    87
    Par défaut installation environnement dev
    Bonjour
    j'ai récupéré un projet en ruby (se sont des tests cucumber)
    j’essaie d'installer l’environnement :

    j'ai installé ruby :
    http://rubyinstaller.org/downloads/ -> OK

    j'ai installé devKit
    http://rubyinstaller.org/downloads/ -> OK
    ruby dk.rb init” et “ruby dk.rb install -> OK

    gem install json --platform=ruby -> OK


    j'ai installé rubygems :
    http://rubygems.org/ -> OK

    ruby setup.rb -> OK
    gem install bundler -> OK

    et la je rentre dans mon projet et lance :
    bundle install
    et c'est la défaite :


    j'ai cette erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    DL is deprecated, please use Fiddle
    Fetching gem metadata from http://rubygems.org/.........
    Using rake 10.1.1
    Using ast 1.1.0
    Using builder 3.2.2
    Using ffi 1.9.3
    Using childprocess 0.4.0
    Using diff-lcs 1.2.5
    Using multi_json 1.8.4
    Using gherkin 2.12.2
    Using multi_test 0.0.3
    Using cucumber 1.3.10
    Using slop 3.4.7
    Using parser 2.1.4
    Using powerpack 0.0.9
    Using rainbow 1.99.1
    Using require_all 1.3.2
    Using rspec-core 2.14.7
    Using rspec-expectations 2.14.4
    Using rspec-mocks 2.14.4
    Using rspec 2.14.1
    Using rubocop 0.16.0
     
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
     
        C:/Ruby21/bin/ruby.exe mkrf_conf.rb
    Installing base gem
    Building native extensions.  This could take a while...
    Building native extensions.  This could take a while...
    ERROR: Failed to build gem native extension.
     
        C:/Ruby21/bin/ruby.exe -r ./siteconf20141007-440-19acf3p.rb extconf.rb
    checking for vm_core.h... no
    checking for vm_core.h... no
    Makefile creation failed
    **************************************************************************
    No source for ruby-2.1.3-p242 provided with debugger-ruby_core_source gem.
    **************************************************************************
    *** 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:/Ruby21/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
     
    extconf failed, exit code 1
     
    Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/debase-0.0.9 for inspection.
    Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/debase-0.0.9/gem_make.out
    C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:89:in `run'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:36:in `block in build'
      C:/Ruby21/lib/ruby/2.1.0/tempfile.rb:324:in `open'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:19:in `build'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:160:in `block in build_extension'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:159:in `synchronize'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_extension'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:195:in `each'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:195:in `build_extensions'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/installer.rb:702:in `build_extensions'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/installer.rb:250:in `install'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/request_set.rb:166:in `block in install'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/request_set.rb:150:in `each'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/request_set.rb:150:in `install'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/dependency_installer.rb:394:in `install'
      mkrf_conf.rb:34:in `rescue in <main>'
      mkrf_conf.rb:27:in `<main>'
     
    rake failed, exit code 1
     
    Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.4.22 for inspection.
    Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/ruby-debug-ide-0.4.22/gem_make.out
    An error occurred while installing ruby-debug-ide (0.4.22), and Bundler cannot
    continue.
    Make sure that `gem install ruby-debug-ide -v '0.4.22'` succeeds before
    bundling.

    du coup je teste : gem install ruby-debug-ide -v '0.4.22'

    et re-defaite :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    ERROR:  Error installing ruby-debug-ide:
            ERROR: Failed to build gem native extension.
     
        C:/Ruby21/bin/ruby.exe mkrf_conf.rb
    Installing base gem
    Building native extensions.  This could take a while...
    Building native extensions.  This could take a while...
    ERROR: Failed to build gem native extension.
     
        C:/Ruby21/bin/ruby.exe -r ./siteconf20141007-12132-1u4uem6.rb extconf.rb
    checking for vm_core.h... no
    checking for vm_core.h... no
    Makefile creation failed
    **************************************************************************
    No source for ruby-2.1.3-p242 provided with debugger-ruby_core_source gem.
    **************************************************************************
    *** 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:/Ruby21/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
     
    extconf failed, exit code 1
     
    Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/debase-0.0.9 for inspection.
    Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/debase-0.0.9/gem_make.out
    C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:89:in `run'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:36:in `block in build'
      C:/Ruby21/lib/ruby/2.1.0/tempfile.rb:324:in `open'
      C:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:19:in `build'


    du coup comme je connais pas du tout ruby si qqn pourrait m'aider
    merci d'avance

  2. #2
    Membre actif
    Profil pro
    Problem Solver
    Inscrit en
    Juin 2013
    Messages
    138
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Problem Solver

    Informations forums :
    Inscription : Juin 2013
    Messages : 138
    Points : 231
    Points
    231
    Par défaut
    Bonjour,
    je ne suis pas un expert Windows mais le message ici dit que l'erreur n'est pas dans du "pur ruby".
    Lorsqu'il installe tes gems, il y en a un qui veut compiler une extension native (en C).
    Il cherche donc des outils pour compiler du C, comme make et autres.
    Il ne trouve pas ses dépendances, et il crashe.

    Pour l'instant avec très peu d'infos je te recommanderais :
    1- d'installer des outils de build C pour Windows
    2- si tu les as déjà, de changer ton PATH dans la console Windows
    3- de trouver un autre gem qui n'aie pas besoin d'extension native C

    Chacune des trois options demande un peu de travail, et pour les 2 premières je ne connais vraiment pas assez de Windows pour t'aider.

    Comme ton dernier log parle de rubocop, c'est peut-être lui. N'utilise pas Rubocop et ça te suffira peut-être !
    ++

Discussions similaires

  1. prob installation environnement graphique
    Par chris787 dans le forum BSD
    Réponses: 0
    Dernier message: 02/07/2008, 12h13
  2. Erreur d'installation environnement LAMP
    Par coxinella dans le forum Ubuntu
    Réponses: 4
    Dernier message: 24/05/2008, 21h30
  3. Confirmation install de dev c++
    Par clio671 dans le forum Dev-C++
    Réponses: 2
    Dernier message: 03/11/2007, 18h21
  4. Outils d'install environnement de developpement.
    Par Sniper37 dans le forum EDI et Outils pour Java
    Réponses: 3
    Dernier message: 08/08/2007, 18h52
  5. Installation avec Dev-C++
    Par japle dans le forum Ogre
    Réponses: 3
    Dernier message: 20/12/2005, 10h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo