ruby - Error installing nokogiri 1.6.0 on mac (libxml2) -
update: fixed
i found answer in thread. workaround used tell nokogiri use system libraries instead:
nokogiri_use_system_libraries=1 bundle install
====
trying install nokogiri 1.6.0 on mac. previous versions, had no problems. 1.6.0 refuses install. error:
building native extensions. take while... error: error installing nokogiri: error: failed build gem native extension. /users/josenriq/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb extracting libxml2-2.8.0.tar.gz tmp/i686-apple-darwin11/ports/libxml2/2.8.0... error tar: not tar archive tar: skipping next header tar: archive contains obsolescent base-64 headers tar: read 3 bytes /users/josenriq/.rvm/gems/ruby-1.9.3-head@wdi/gems/nokogiri-1.6.0/ports/archives/libxml2-2.8.0.tar.gz tar: error exit delayed previous errors *** 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-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/josenriq/.rvm/rubies/ruby-1.9.3-head/bin/ruby /users/josenriq/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.1/lib/mini_portile.rb:234:in `extract_file': failed complete extract task (runtimeerror) /users/josenriq/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.1/lib/mini_portile.rb:34:in `block in extract' /users/josenriq/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.1/lib/mini_portile.rb:32:in `each' /users/josenriq/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.1/lib/mini_portile.rb:32:in `extract' /users/josenriq/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.1/lib/mini_portile.rb:98:in `cook' extconf.rb:101:in `block in <main>' extconf.rb:119:in `call' extconf.rb:119:in `block in <main>' extconf.rb:109:in `tap' extconf.rb:109:in `<main>' gem files remain installed in /users/josenriq/.rvm/gems/ruby-1.9.3-head@wdi/gems/nokogiri-1.6.0 inspection. results logged /users/josenriq/.rvm/gems/ruby-1.9.3-head@wdi/gems/nokogiri-1.6.0/ext/nokogiri/gem_make.out
seems has libxml2 tar file not being able extract.
any ideas? i've done maybe 8 hours of research no avail. thanks!
i found answer in thread. workaround used tell nokogiri use system libraries instead:
nokogiri_use_system_libraries=1 bundle install
Comments
Post a Comment