Currently having a hell of a time getting Nokogiri installed on OSX
(using macports ruby install). Couldn't find a nokogiri google group,
and since Merb uses it as a dependency, figured I'd see if anyone can
help me out with this.

Here's is the results of trying to install the gem

[...@macbookpro ~]# gem --version
1.3.1
[...@macbookpro ~]# ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
[...@macbookpro ~]# sudo gem install nokogiri
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.

/opt/local/bin/ruby extconf.rb install nokogiri
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
checking for libxml/xmlversion.h in /opt/local/include,/opt/local/
include/libxml2,/opt/local/include/libxml2,/opt/local/include,/usr/
include/libxml2,/usr/local/include/libxml2... yes
checking for libxslt/xslt.h in /opt/local/include,/opt/local/include/
libxml2,/opt/local/include/libxml2,/opt/local/include,/usr/include/
libxml2,/usr/local/include/libxml2... yes
checking for libexslt/exslt.h in /opt/local/include,/opt/local/include/
libxml2,/opt/local/include/libxml2,/opt/local/include,/usr/include/
libxml2,/usr/local/include/libxml2... yes
creating Makefile

make
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c html_document.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c html_sax_parser.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c native.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_cdata.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_comment.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_document.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_dtd.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_io.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_node.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_node_set.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_reader.c
xml_reader.c: In function ‘encoding’:
xml_reader.c:209: warning: implicit declaration of function
‘xmlTextReaderConstEncoding’
xml_reader.c: In function ‘xml_version’:
xml_reader.c:225: warning: implicit declaration of function
‘xmlTextReaderConstXmlVersion’
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_sax_parser.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_syntax_error.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_text.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_xpath.c
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xml_xpath_context.c
xml_xpath_context.c: In function ‘ruby_funcall’:
xml_xpath_context.c:84: warning: passing argument 1 of
‘xmlXPathWrapString’ from incompatible pointer type
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/
opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
include -fno-common -O2  -fno-common -pipe -fno-common   -g -DXP_UNIX -
O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -
Winline  -c xslt_stylesheet.c
In file included from xslt_stylesheet.c:3:
/opt/local/include/libxslt/xsltInternals.h:21:30: error: libxml/
xmlstring.h: No such file or directory
make: *** [xslt_stylesheet.o] Error 1


Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/
nokogiri-1.1.0 for inspection.
Results logged to /opt/local/lib/ruby/gems/1.8/gems/nokogiri-1.1.0/ext/
nokogiri/gem_make.out
[...@macbookpro ~]#

--

>From the output it looks to me like I have a problem in my libxml or
libxml2 port installs. I've updated all my ports to the latest
version. If someone has it working, can you run the same command and
let me know which libxml ports you have installed. Maybe I can try
those instead.

[...@macbookpro ~]# port list *libxml*
libxml                         @1.8.17         textproc/libxml
libxml2                        @2.7.2          textproc/libxml2
libxmldiff                     @0.2.5          textproc/libxmldiff
libxmlxx                       @1.0.5          textproc/libxmlxx
libxmlxx2                      @2.18.1         textproc/libxmlxx2
p5-libxml-enno                 @1.02           perl/p5-libxml-enno
p5-libxml-perl                 @0.08           perl/p5-libxml-perl
p5-xml-libxml                  @1.66           perl/p5-xml-libxml
p5-xml-libxml-common           @0.13           perl/p5-xml-libxml-
common
py-libxml2                     @2.6.21         python/py-libxml2
py25-libxml2                   @2.6.21         python/py25-libxml2
py26-libxml2                   @2.6.21         python/py26-libxml2
rb-libxml2                     @0.3.6          ruby/rb-libxml2
[...@macbookpro ~]#


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to