Ich versuche Ruby on Rails über RVM auf Yosemite zu installieren. Alles scheint zwar gearbeitet, haben, wenn ich versuche zu laufen ‚Bündel installieren‘ Ich bin präsentiert mit einem Fehler in Zusammenhang mit Nokogiri:Installieren Sie Nokogiri auf Yosemite
pauls-air:~ paulmcguane$ gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib'
This could take a while...
Building nokogiri using packaged libraries.
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
Die Fehlermeldung lautet:
/Users/paulmcguane/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
-----
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/Users/paulmcguane/.rvm/rubies/ruby-2.1.2/bin/ruby
--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
Sie sollten wahrscheinlich nokogiri verwenden seine gebündelte Version von lib xml lassen, anstatt die Verwendung eines zwingt Sie installiert haben (obwohl es so aussieht, es könnte das sowieso machen) Außerdem sollte in der Fehlermeldung eine Log-Datei mit dem genauen Kompilierfehler erwähnt werden. –
Nicht auf Yosemite installiert. Aber ich würde wieder mit einem frischen Edelsteinset beginnen und sicherstellen, dass Nokogiri VOR Schienen (oder irgendeinem anderen Edelstein) gelistet ist. Dies kann sicherstellen, dass Nokogiri seine eingebettete libxml2 verwendet (was verhindert, dass Sie Probleme mit dem ersten Kind haben). Siehe auch https://github.com/sparklemotion/nokogiri/issues/742#issuecomment-9082139 und https://github.com/sparklemotion/nokogiri/issues/829 –
Sie können diese Antwort versuchen: http: // stackoverflow. com/questions/24091869/installation-nokogiri-on-osx-10-10-yosemite? answertab = aktiv # tab-top – activars