FEHLER: Fehler beim Installieren von mysql2: FEHLER: Fehler beim Erstellen der nativen Erweiterung von Gem

Ich habe einige Probleme beim Versuch, gem install mysql2 -v '0.3.17' für Rails zu installieren. Wenn ich versuche, es mit gem install mysql2 -v '0.3.17' oder gem install mysql2 -v '0.3.17' zu installieren, erhalte ich den folgenden Fehler:

ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.


Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the file for more
details.  You may need configuration options.

Provided configuration options:
    --with-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
    --with-mysql-dir
    --without-mysql-dir
    --with-mysql-include
    --without-mysql-include=${mysql-dir}/include
    --with-mysql-lib
    --without-mysql-lib=${mysql-dir}/lib
    --with-mysql-config
    --without-mysql-config

Gem files will remain installed in `..../gems/ruby-1.9.3-p392/gems/mysql2-0.3.17 for inspection`.
Results logged to `.../gems/ruby-1.9.3-p392/extensions/x86_64-darwin-14/1.9.1/mysql2-0.3.17/gem_make.out`

Wie kann ich das beheben und mysql2 erfolgreich installieren?

Danke an alle.

Antworten auf die Frage(8)

Ihre Antwort auf die Frage