Instalación de nokogiri en windows 7

15 views
Skip to first unread message

Angel Mauricio Pino Gonzalez

unread,
Dec 12, 2013, 12:55:32 PM12/12/13
to rub...@googlegroups.com
Alguien a instalado Mechanize y por ende nokogiri en windows. Me esta reclamando por falta de libxml2.dll todo lo que encuentro en Internet no me funciona.

Tengo windows 7 de 64 bit 
ruby 2.0.0

Gracias

--
Angel Mauricio Pino G
AngelMauricio...@gmail.com
fono: 562-381.86.58

Luis Lavena

unread,
Dec 12, 2013, 1:47:16 PM12/12/13
to rub...@googlegroups.com
2013/12/12 Angel Mauricio Pino Gonzalez <angelmauricio...@gmail.com>

Alguien a instalado Mechanize y por ende nokogiri en windows. Me esta reclamando por falta de libxml2.dll todo lo que encuentro en Internet no me funciona.

Tengo windows 7 de 64 bit 
ruby 2.0.0


Podes ser mas preciso en la version de Ruby 2.0.0 que tenes?

Es la de 32bits? la de 64bits?

No hay todavia un binario de nokogiri que soporte Ruby 2.0 en 64bits:


Pero hay gente que esta trabajando para corregirlo:


Mientras tanto podes forzar la plataforma con --platform=ruby durante la instalacion, y este se encargara de compilar libxml2 y las otras dependencias.

Por lo menos la version 1.6.0 hace eso.

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Angel Mauricio Pino Gonzalez

unread,
Dec 12, 2013, 2:27:38 PM12/12/13
to rub...@googlegroups.com
Efectivamente tenbgo ruby 2.0.0x64 y al intentar con platform=ruby em reclama por el libxml2

    C:/Ruby200-x64/bin/ruby.exe extconf.rb --plataform=ruby
checking for libxml/parser.h... no
-----
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokog
iri.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
        --without-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=C:/Ruby200-x64/bin/ruby
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --with-iconv-dir
        --without-iconv-dir
        --with-iconv-include
        --without-iconv-include=${iconv-dir}/include
        --with-iconv-lib
        --without-iconv-lib=${iconv-dir}/lib
        --with-xml2-dir
        --without-xml2-dir
        --with-xml2-include
        --without-xml2-include=${xml2-dir}/include
        --with-xml2-lib
        --without-xml2-lib=${xml2-dir}/lib
        --with-xslt-dir
        --without-xslt-dir
        --with-xslt-include
        --without-xslt-include=${xslt-dir}/include
        --with-xslt-lib
        --without-xslt-lib=${xslt-dir}/lib
        --with-libxslt-config
        --without-libxslt-config
        --with-pkg-config
        --without-pkg-config
        --with-libxml-2.0-config
        --without-libxml-2.0-config
        --with-pkg-config
        --without-pkg-config
        --with-libiconv-config
        --without-libiconv-config
        --with-pkg-config
        --without-pkg-config


Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/nokog
iri-1.6.0 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.0/ext/nok
ogiri/gem_make.out

C:\Users\Acer>



--
Has recibido este mensaje porque estás suscrito al grupo "rubysur" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus correos electrónicos, envía un correo electrónico a rubysur+u...@googlegroups.com.
Para obtener más opciones, visita https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages