Просмотрено
Метка: Nokogiri

Error install nokogiri

Error install nokogiri

Fetching: mini_portile-0.6.2.gem (100%) Fetching: nokogiri-1.6.6.3.gem (100%) Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.   /usr/bin/ruby1.9.1 extconf.rb checking if the C compiler accepts … yes Building nokogiri using packaged libraries. checking for gzdopen() in -lz… no zlib is missing; necessary for building libxml2 *** 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….

Читать далее Читать далее

XML парсер на Ruby

XML парсер на Ruby

Парсить XML можно с помощью библиотеки Nokogiri http://www.nokogiri.org/tutorials/searching_a_xml_html_document.html Ставим Ruby-dev aptitude install ruby-dev wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.0.tgz tar xvf rubygems-1.5.0.tgz cd rubygems-1.5.0 sudo ruby setup.rb gem install optparse-commandaptitude install ruby-dev wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.0.tgz tar xvf rubygems-1.5.0.tgz cd rubygems-1.5.0 sudo ruby setup.rb gem install optparse-command А после Nokogiri gem install nokogiri