ruby on rails - ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension -
i reinstalled rbenv helped other issues. receive completly new issue particular project.
similar issue posted: nokogiri - error: failed build gem native extension , nokogiri not install - error: failed build gem native extension have attempted several of solutions, no luck.
here condensed error :
|11:11:05| ~ bundle install fetching source index https://rubygems.org/ using rake 10.3.2 using ascii85 1.0.2 using i18n 0.6.9 ... using callsite 0.0.11 using cancan 1.6.10 using mini_portile 0.5.2 user account isn't allowed install system rubygems. can cancel installation , run: bundle install --path vendor/bundle install gems ./vendor/bundle/, or can enter password , install bundled gems rubygems using sudo. password: gem::ext::builderror: error: failed build gem native extension. /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb extracting libxml2-2.8.0.tar.gz tmp/x86_64-apple-darwin13.2.0/ports/libxml2/2.8.0... ok running 'configure' libxml2 2.8.0... ok running 'compile' libxml2 2.8.0... ok running 'install' libxml2 2.8.0... ok activating libxml2 2.8.0 (from /private/var/folders/mp/tl8cpc_j0vd504t3npnqxzl00000gn/t/bundler20140627-949-55sx95/nokogiri-1.6.1/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxml2/2.8.0)... extracting libxslt-1.1.26.tar.gz tmp/x86_64-apple-darwin13.2.0/ports/libxslt/1.1.26... ok running 'configure' libxslt 1.1.26... ok running 'compile' libxslt 1.1.26... ok running 'install' libxslt 1.1.26... ok activating libxslt 1.1.26 (from /private/var/folders/mp/tl8cpc_j0vd504t3npnqxzl00000gn/t/bundler20140627-949-55sx95/nokogiri-1.6.1/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxslt/1.1.26)... checking libxml/parser.h... yes checking libxslt/xslt.h... yes checking libexslt/exslt.h... yes checking iconv_open() in iconv.h... no checking iconv_open() in -liconv... yes checking xmlparsedoc() in -lxml2... no ----- libxml2 missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html installing dependencies. ----- *** 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. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include ... --without-iconvlib --with-xml2lib --without-xml2lib extconf failed, exit code 1 gem files remain installed in /var/folders/mp/tl8cpc_j0vd504t3npnqxzl00000gn/t/bundler20140627-949-55sx95/nokogiri-1.6.1/gems/nokogiri-1.6.1 inspection. results logged /var/folders/mp/tl8cpc_j0vd504t3npnqxzl00000gn/t/bundler20140627-949-55sx95/nokogiri-1.6.1/extensions/universal-darwin-13/2.0.0/nokogiri-1.6.1/gem_make.out error occurred while installing nokogiri (1.6.1), , bundler cannot continue. make sure `gem install nokogiri -v '1.6.1'` succeeds before bundling. |11:15:49| ~ sudo gem install nokogiri -v '1.6.1' building native extensions. take while... error: error installing nokogiri: error: failed build gem native extension. /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb extracting libxml2-2.8.0.tar.gz tmp/x86_64-apple-darwin13.2.0/ports/libxml2/2.8.0... ok running 'configure' libxml2 2.8.0... ok running 'compile' libxml2 2.8.0... ok running 'install' libxml2 2.8.0... ok activating libxml2 2.8.0 (from /library/ruby/gems/2.0.0/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxml2/2.8.0)... extracting libxslt-1.1.26.tar.gz tmp/x86_64-apple-darwin13.2.0/ports/libxslt/1.1.26... ok running 'configure' libxslt 1.1.26... ok running 'compile' libxslt 1.1.26... ok running 'install' libxslt 1.1.26... ok activating libxslt 1.1.26 (from /library/ruby/gems/2.0.0/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.2.0/libxslt/1.1.26)... checking libxml/parser.h... yes checking libxslt/xslt.h... yes checking libexslt/exslt.h... yes checking iconv_open() in iconv.h... no checking iconv_open() in -liconv... yes checking xmlparsedoc() in -lxml2... no ----- libxml2 missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html installing dependencies. ----- *** 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. provided configuration options: --with-opt-dir ... --with-xml2lib --without-xml2lib extconf failed, exit code 1 gem files remain installed in /library/ruby/gems/2.0.0/gems/nokogiri-1.6.1 inspection. results logged /library/ruby/gems/2.0.0/extensions/universal-darwin-13/2.0.0/nokogiri-1.6.1/gem_make.out
my complete error message here: http://pastebin.com/4qmxl9e1
as of answers in question gem install nokogiri -v '1.5.9'
, sudo port upgrade libxml2 libxslt
ruby
sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby
nokogiri
sudo apt-get install libxslt-dev libxml2-dev sudo gem install nokogiri
here info ruby versions , other system info http://pastebin.com/fcwdtiq9
if using centos install this:
yum install libxslt-devel libxml2-devel
Comments
Post a Comment