FEHLER: Fehler beim Installieren von Cocoapods: FEHLER: Fehler beim Erstellen der gem nativen Erweiterung
Ich versuche zu installieren cocoapods auf meinem macbook pro läuft mit OSX 10.9.1 (neue mavericks) und nach Art gem install cocoapods
bekomme ich die folgende Fehlermeldung:
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
"/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rubygems /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext RUBYLIBDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext
/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for -std=c99 option to compiler... *** 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
--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=/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from extconf.rb:24:in `block in <main>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from extconf.rb:23:in `<main>'
rake aborted!
Command failed with status (1): [/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/...]
Tasks: TOP => default => ext
(See full trace by running task with --trace)
Gem files will remain installed in /Users/rangreenberg/gems/gems/xcodeproj-0.14.1 for inspection.
Results logged to /Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext/xcodeproj/gem_make.out
Jede Hilfe wird groß.
Vielen Dank im Voraus.
InformationsquelleAutor der Frage gran33 | 2014-01-05
Du musst angemeldet sein, um einen Kommentar abzugeben.
Müssen Sie zum installieren von Xcode developer tools. Der einfachste Weg dies zu tun ist durch terminal (diese Frage)
InformationsquelleAutor der Antwort Kevin
Habe das problem behoben, indem Sie mithilfe von ruby 2.0 (das ist der bevorzugte Weg, auf mavericks) oder höher. Falls Sie mit rvm ändern Sie einfach den richtigen ruby mit:
Danach
gem install cocoapods
richtig funktioniert. Um genauer zu sein, ich war mit:InformationsquelleAutor der Antwort anka
Ersten wie schrieb "Kevin" versuchen, im terminal ausführen:
Wenn es nicht hilft, download-tools manuell von der apple developer Website:
Es hat mir geholfen.
InformationsquelleAutor der Antwort averem
Ich das problem beheben, indem Sie Folgen Schritt:
1:rvm install 2.0.0
2:rvm-Liste
* ruby-1.9.3-p545 [ x86_64 ]
=> ruby-2.0.0-p451 [ x86_64 ]
3:rvm 2.0.0 —Standard
4:pod update
InformationsquelleAutor der Antwort showtimefan
Ich hatte exakt das gleiche problem, ich hatte zwar die neueste version der xcode command line tools.
Wenn du homebrew installiert haben, führen Sie
brew install apple-gcc42
. Diese sofort gelöst für mich.InformationsquelleAutor der Antwort ayberkt
Okay,
Ich hatte das gleiche Problem. Versucht zu installieren-pods mein Projekt aber nie geklappt. Ich aktualisiert Xcode, Aktualisierte Kommandozeilen-tools, Neuinstallation von cocoapods... fast alles.
Sitzen auf meinem Hintern , schreiben pod im terminal zeigte sich ein Bildschirm auflisten der verfügbaren Befehle.
Ich alle gelesen und bemerkt den Befehl
die nicht
Nach dieser Codezeile, mein problem war behoben.
Ich hoffe, meine Lösung hilft anderen Menschen in not wie mich.
InformationsquelleAutor der Antwort xdevx
Hatte ich mehrere Umgebungen in meiner Konfiguration, die verursacht wurde Probleme wie rvm war die installation stören. Sobald ruby 2.x wurde erkannt, die Installation ging in Ordnung.
Für meine Umgebung habe ich Folgendes:
1. xcode-select --install
2. rvm implode (Hinweis - auch drastische - können Sie nicht brauchen, um dies zu tun, ich hatte keine Verwendung für die älteren ruby-Installationen, entfernte ich Sie mittels rvm deinstallieren Sie one-by-one, und dann verwendet, rvm implode
3. gem install cocoapods
Dieser Zeit der Letzte Befehl funktionierte ohne Probleme.
InformationsquelleAutor der Antwort LNI
War ich immer diesen Fehler und musste komplett neu installieren, cocoapods, um es zu beheben. Schließlich arbeitete. Vielleicht ist diese Lösung passt für jemand anderes.
Danach wieder haben
installiert und meine Bibliotheken von null, und alles funktionierte.
Hoffe, es hilft!
InformationsquelleAutor der Antwort voghDev
Müssen Sie verwenden den Befehl im Terminal für die Installation von Kommandozeilen-Tools:
Wenn Sie die Nachricht erhalten, als ein Ergebnis von "Kann nicht installieren Sie die software, weil es ist derzeit nicht verfügbar, von der Software-Update-server.", Sie muss der download manuell Command-Line-Tools von Apple Website.
InformationsquelleAutor der Antwort pchelnikov