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 :

Erreur : install Rails


Sujet :

Ruby

  1. #1
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    26
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2012
    Messages : 26
    Points : 49
    Points
    49
    Par défaut Erreur : install Rails
    Bonjour à tous,

    J'ai un problème à l'installation de rails sur mac os. J'ai cette erreur qui s'affiche:

    gem install rails
    Building native extensions. This could take a while...
    ERROR: Error installing rails:
    ERROR: Failed to build gem native extension.

    /Users/frederic/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20150512-870-xwv1rk.rb extconf.rb
    checking if the C compiler accepts ... yes
    checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
    Building nokogiri using packaged libraries.
    -----
    The file "/usr/include/iconv.h" is missing in your build environment,
    which means you haven't installed Xcode Command Line Tools properly.

    To install Command Line Tools, try running `xcode-select --install` on
    terminal and follow the instructions. If it fails, open Xcode.app,
    select from the menu "Xcode" - "Open Developer Tool" - "More Developer
    Tools" to open the developer site, download the installer for your OS
    version and run it.
    -----
    *** 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/frederic/.rbenv/versions/2.2.0/bin/$(RUBY_BASE_NAME)
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build

    extconf failed, exit code 1

    Gem files will remain installed in /Users/frederic/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2 for inspection.
    Results logged to /Users/frederic/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/nokogiri-1.6.6.2/gem_make.out

    Que doive je faire ? Pouvez-vous m'aider ?

    Marci d'avance !!

  2. #2
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2015
    Messages
    13
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Drôme (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2015
    Messages : 13
    Points : 10
    Points
    10
    Par défaut
    Pas besoin de chercher bien loin, ton message te dit tout :
    The file "/usr/include/iconv.h" is missing in your build environment,
    which means you haven't installed Xcode Command Line Tools properly.

    To install Command Line Tools, try running `xcode-select --install` on
    terminal and follow the instructions. If it fails, open Xcode.app,
    select from the menu "Xcode" - "Open Developer Tool" - "More Developer
    Tools" to open the developer site, download the installer for your OS
    version and run it.
    J'ai eu la même erreur, il faut que tu installes Xcode sur ton mac en utilisant la commande dans ton terminal : xcode-select --install
    Et normalement ça devrais fonctionner

Discussions similaires

  1. Erreur installation sqlite3 apres "rails server"
    Par __fabrice dans le forum Ruby
    Réponses: 3
    Dernier message: 21/03/2011, 09h41
  2. Erreur Install Lilo/grub
    Par t_om84 dans le forum Administration système
    Réponses: 8
    Dernier message: 04/10/2007, 13h21
  3. commande gem install rails = erreur
    Par khany dans le forum Ruby on Rails
    Réponses: 9
    Dernier message: 28/08/2007, 18h43
  4. Erreur install runtime
    Par stigma dans le forum Runtime
    Réponses: 1
    Dernier message: 24/05/2006, 09h41
  5. Erreur installation impossible ..
    Par ronando dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 29/07/2005, 12h20

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