Can't install libxml-ruby

C

Chris Olsen

I was getting errors thrown for the libxml-ruby lib when updating my
gems, so I decided to install the gem causing the issue, hoping that a
fresh install would solve the problems.

I am now unable to install it. It seems to have an issue finding some
libraries, but I am unsure if they are needed, since I did have it
installed before, but if they are where to get them.

Thanks for any help.

-----------
$ sudo gem install libxml-ruby
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb install libxml-ruby
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... yes
checking for libxml/xmlversion.h... yes
checking for xmlDocFormatDump()... yes
checking for docbCreateFileParserCtxt()... yes
creating extconf.h
creating Makefile

make
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c cbg.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c libxml.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_attr.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_attributes.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_document.c
ruby_xml_document.c: In function ‘ruby_xml_document_encoding_set’:
ruby_xml_document.c:373: warning: pointer targets in passing argument 1
of ‘xmlStrdup’ differ in signedness
ruby_xml_document.c: In function ‘ruby_xml_document_encoding_set’:
ruby_xml_document.c:373: warning: pointer targets in passing argument 1
of ‘xmlStrdup’ differ in signedness
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_dtd.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_html_parser.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_input_cbg.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_node.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_node_set.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_ns.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_parser.c
ruby_xml_parser.c: In function
‘ruby_xml_parser_default_tree_indent_string_set’:
ruby_xml_parser.c:589: warning: pointer targets in passing argument 1 of
‘xmlStrdup’ differ in signedness
ruby_xml_parser.c:589: warning: pointer targets in assignment differ in
signedness
ruby_xml_parser.c: In function
‘ruby_xml_parser_default_tree_indent_string_set’:
ruby_xml_parser.c:589: warning: pointer targets in passing argument 1 of
‘xmlStrdup’ differ in signedness
ruby_xml_parser.c:589: warning: pointer targets in assignment differ in
signedness
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_parser_context.c
gcc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common
-arch ppc -arch i386 -Os -pipe -fno-common -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
-I. -I/usr/local/include -c ruby_xml_reader.c
ruby_xml_reader.c: In function ‘ruby_xml_reader_encoding’:
ruby_xml_reader.c:531: warning: comparison between pointer and integer
ruby_xml_reader.c: In function ‘ruby_xml_reader_xml_version’:
ruby_xml_reader.c:644: warning: comparison between pointer and integer
ruby_xml_reader.c: In function ‘ruby_init_xml_reader’:
ruby_xml_reader.c:939: error: ‘XML_TEXTREADER_MODE_INITIAL’ undeclared
(first use in this function)
ruby_xml_reader.c:939: error: (Each undeclared identifier is reported
only once
ruby_xml_reader.c:939: error: for each function it appears in.)
ruby_xml_reader.c:940: error: ‘XML_TEXTREADER_MODE_INTERACTIVE’
undeclared (first use in this function)
ruby_xml_reader.c:941: error: ‘XML_TEXTREADER_MODE_ERROR’ undeclared
(first use in this function)
ruby_xml_reader.c:942: error: ‘XML_TEXTREADER_MODE_EOF’ undeclared
(first use in this function)
ruby_xml_reader.c:943: error: ‘XML_TEXTREADER_MODE_CLOSED’ undeclared
(first use in this function)
ruby_xml_reader.c:944: error: ‘XML_TEXTREADER_MODE_READING’ undeclared
(first use in this function)
ruby_xml_reader.c: In function ‘ruby_xml_reader_encoding’:
ruby_xml_reader.c:531: warning: comparison between pointer and integer
ruby_xml_reader.c: In function ‘ruby_xml_reader_xml_version’:
ruby_xml_reader.c:644: warning: comparison between pointer and integer
ruby_xml_reader.c: In function ‘ruby_init_xml_reader’:
ruby_xml_reader.c:939: error: ‘XML_TEXTREADER_MODE_INITIAL’ undeclared
(first use in this function)
ruby_xml_reader.c:939: error: (Each undeclared identifier is reported
only once
ruby_xml_reader.c:939: error: for each function it appears in.)
ruby_xml_reader.c:940: error: ‘XML_TEXTREADER_MODE_INTERACTIVE’
undeclared (first use in this function)
ruby_xml_reader.c:941: error: ‘XML_TEXTREADER_MODE_ERROR’ undeclared
(first use in this function)
ruby_xml_reader.c:942: error: ‘XML_TEXTREADER_MODE_EOF’ undeclared
(first use in this function)
ruby_xml_reader.c:943: error: ‘XML_TEXTREADER_MODE_CLOSED’ undeclared
(first use in this function)
ruby_xml_reader.c:944: error: ‘XML_TEXTREADER_MODE_READING’ undeclared
(first use in this function)
lipo: can't open input file: /var/tmp//ccnmxnJJ.out (No such file or
directory)
make: *** [ruby_xml_reader.o] Error 1


Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/libxml-ruby-0.8.3 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/libxml-ruby-0.8.3/ext/libxml/gem_make.out
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top