i decided reinstall rails on mac following install rails guide it's failing when tries gem install nokogiri
. i'm running mac osx version 10.10.5 , have ruby version 2.2.1p85 installed.
i following errors:
running git apply /users/parkour/.rvm/gems/ruby-2.0.0-p643/gems/nokogiri-1.6.7.2/patches/libxslt/0017-updated-config.guess.patch... ok running 'configure' libxslt 1.1.28... ok running 'compile' libxslt 1.1.28... ok running 'install' libxslt 1.1.28... ok activating libxslt 1.1.28 (from /users/parkour/.rvm/gems/ruby-2.0.0-p643/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin14.1.0/libxslt/1.1.28)... checking main() in -llzma... yes checking xmlparsedoc() in libxml/parser.h... no checking xmlparsedoc() in -lxml2... no checking xmlparsedoc() in -llibxml2... no ----- libxml2 missing. please locate mkmf.log investigate how failing. ----- *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options.
so far i've tried following commands no success:
brew install libxml2
(suggested here)
xcode-select --install gem install nokogiri bundle config build.nokogiri --use-system-libraries bundle install
(suggested here)
brew install libxml2 libxslt libiconv nokogiri_use_system_libraries=1 gem install nokogiri -- --use-system-libraries --with-iconv-dir="$(brew --prefix libiconv)" --with-xml2-config="$(brew --prefix libxml2)/bin/xml2-config" --with-xslt-config="$(brew --prefix libxslt)/bin/xslt-config"
and
archflags="-arch x86_64" gem install nokogiri
(both suggested here)
can provide alternative solutions might work?
thank in advance!
install brew libs
brew tap homebrew/dupes brew install libxml2 libxslt brew install libiconv
then link new iconv libs:
brew link libiconv
then install gem
gem install nokogiri -- --with-iconv-dir=/usr/local/cellar/libiconv/1.14
if doesn't work can try this. not sure though might work.
gem install nokogiri -v '1.6.7.1' -- --use-system-libraries=true --with-xml2-include=/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.11.sdk/usr/include/libxml2
Comments
Post a Comment