# Gem update problem

**URL:** <https://www.ruby-forum.com/t/gem-update-problem/162158>\
**Category:** Rails\
**Created:** [March 6, 2009, 10:20am UTC](https://www.ruby-forum.com/t/gem-update-problem/162158 "2009-03-06T10:20:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 6, 2009, 10:20am UTC](https://www.ruby-forum.com/t/gem-update-problem/162158/1 "2009-03-06T10:20:13Z")

</div>

Hi, firs at all sorry if my english is not the best.

I’m working with OSX and i have a problem trying to launc localhost.  
In mongrel.log i can see this message:

Agent Log is found in /Users/jose/rankia/log/newrelic\_agent.3000.log  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in  
`gem\_original\_require’: no such file to load – action\_mailer/ar\_mailer  
(MissingSourceFile)

but if i write gem list --local I can see this:

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.2.2, 2.1.2, 1.3.6)

ItÂ´s strange… gem is installed.

I write:

sudo gem update

but it shows me this message:

Updating installed gems  
Updating libxml-ruby  
Building native extensions. This could take a while…  
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)  
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
extconf.rb update  
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 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/usr/include/libxml2 -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/usr/include/libxml2 -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/usr/include/libxml2 -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.c  
ruby\_xml.c: In function â€˜rxml\_default\_tree\_indent\_string\_setâ€™:  
ruby\_xml.c:575: warning: pointer targets in assignment differ in  
signedness  
ruby\_xml.c: In function â€˜rxml\_default\_tree\_indent\_string\_setâ€™:  
ruby\_xml.c:575: 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/usr/include/libxml2 -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/usr/include/libxml2 -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\_decl.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/usr/include/libxml2 -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/usr/include/libxml2 -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 â€˜rxml\_document\_saveâ€™:  
ruby\_xml\_document.c:552: warning: pointer targets in assignment differ  
in signedness  
ruby\_xml\_document.c: In function â€˜rxml\_document\_saveâ€™:  
ruby\_xml\_document.c:552: 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/usr/include/libxml2 -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/usr/include/libxml2 -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\_encoding.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/usr/include/libxml2 -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\_error.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/usr/include/libxml2 -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/usr/include/libxml2 -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\_context.c  
ruby\_xml\_html\_parser\_context.c: In function  
â€˜rxml\_html\_parser\_context\_ioâ€™:  
ruby\_xml\_html\_parser\_context.c:68: warning: assignment makes pointer  
from integer without a cast  
ruby\_xml\_html\_parser\_context.c: In function  
â€˜rxml\_html\_parser\_context\_ioâ€™:  
ruby\_xml\_html\_parser\_context.c:68: warning: assignment makes pointer  
from integer without a cast  
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/usr/include/libxml2 -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\_options.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/usr/include/libxml2 -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/usr/include/libxml2 -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\_io.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/usr/include/libxml2 -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\_namespace.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/usr/include/libxml2 -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\_namespaces.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/usr/include/libxml2 -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/usr/include/libxml2 -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  
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/usr/include/libxml2 -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  
ruby\_xml\_parser\_context.c: In function â€˜rxml\_parser\_context\_documentâ€™:  
ruby\_xml\_parser\_context.c:55: warning: pointer targets in passing  
argument 4 of â€˜xmlDocDumpFormatMemoryEncâ€™ differ in signedness  
ruby\_xml\_parser\_context.c: In function  
â€˜rxml\_parser\_context\_base\_uri\_setâ€™:  
ruby\_xml\_parser\_context.c:183: warning: pointer targets in  
initialization differ in signedness  
ruby\_xml\_parser\_context.c: In function  
â€˜rxml\_parser\_context\_encoding\_getâ€™:  
ruby\_xml\_parser\_context.c:308: warning: pointer targets in passing  
argument 1 of â€˜xmlParseCharEncodingâ€™ differ in signedness  
ruby\_xml\_parser\_context.c: In function â€˜rxml\_parser\_context\_documentâ€™:  
ruby\_xml\_parser\_context.c:55: warning: pointer targets in passing  
argument 4 of â€˜xmlDocDumpFormatMemoryEncâ€™ differ in signedness  
ruby\_xml\_parser\_context.c: In function  
â€˜rxml\_parser\_context\_base\_uri\_setâ€™:  
ruby\_xml\_parser\_context.c:183: warning: pointer targets in  
initialization differ in signedness  
ruby\_xml\_parser\_context.c: In function  
â€˜rxml\_parser\_context\_encoding\_getâ€™:  
ruby\_xml\_parser\_context.c:308: warning: pointer targets in passing  
argument 1 of â€˜xmlParseCharEncodingâ€™ 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/usr/include/libxml2 -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\_options.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/usr/include/libxml2 -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 â€˜rxml\_reader\_encodingâ€™:  
ruby\_xml\_reader.c:600: warning: pointer targets in passing argument 1 of  
â€˜xmlParseCharEncodingâ€™ differ in signedness  
ruby\_xml\_reader.c: In function â€˜rxml\_reader\_encodingâ€™:  
ruby\_xml\_reader.c:600: warning: pointer targets in passing argument 1 of  
â€˜xmlParseCharEncodingâ€™ 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/usr/include/libxml2 -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\_relaxng.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/usr/include/libxml2 -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\_sax2\_handler.c  
ruby\_xml\_sax2\_handler.c: In function â€˜end\_element\_ns\_callbackâ€™:  
ruby\_xml\_sax2\_handler.c:86: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:88: warning: pointer targets in passing argument  
2 of â€˜rb\_str\_cat2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:92: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:98: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:99: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:100: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c: In function â€˜start\_element\_ns\_callbackâ€™:  
ruby\_xml\_sax2\_handler.c:209: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:210: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_newâ€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:223: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:224: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:235: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:237: warning: pointer targets in passing  
argument 2 of â€˜rb\_str\_cat2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:241: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:247: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:249: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:250: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c: In function â€˜end\_element\_ns\_callbackâ€™:  
ruby\_xml\_sax2\_handler.c:86: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:88: warning: pointer targets in passing argument  
2 of â€˜rb\_str\_cat2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:92: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:98: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:99: warning: pointer targets in passing argument  
1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:100: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c: In function â€˜start\_element\_ns\_callbackâ€™:  
ruby\_xml\_sax2\_handler.c:209: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:210: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_newâ€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:223: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:224: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:235: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:237: warning: pointer targets in passing  
argument 2 of â€˜rb\_str\_cat2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:241: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:247: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:249: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ differ in signedness  
ruby\_xml\_sax2\_handler.c:250: warning: pointer targets in passing  
argument 1 of â€˜rb\_str\_new2â€™ 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/usr/include/libxml2 -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\_sax\_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/usr/include/libxml2 -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\_schema.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/usr/include/libxml2 -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\_xinclude.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/usr/include/libxml2 -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\_xpath.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/usr/include/libxml2 -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\_xpath\_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/usr/include/libxml2 -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\_xpath\_expression.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/usr/include/libxml2 -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\_xpath\_object.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/usr/include/libxml2 -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\_xpointer.c  
cc -arch ppc -arch i386 -pipe -bundle -undefined dynamic\_lookup -o  
libxml\_ruby.bundle cbg.o libxml.o ruby\_xml.o ruby\_xml\_attr.o  
ruby\_xml\_attr\_decl.o ruby\_xml\_attributes.o ruby\_xml\_document.o  
ruby\_xml\_dtd.o ruby\_xml\_encoding.o ruby\_xml\_error.o  
ruby\_xml\_html\_parser.o ruby\_xml\_html\_parser\_context.o  
ruby\_xml\_html\_parser\_options.o ruby\_xml\_input\_cbg.o ruby\_xml\_io.o  
ruby\_xml\_namespace.o ruby\_xml\_namespaces.o ruby\_xml\_node.o  
ruby\_xml\_parser.o ruby\_xml\_parser\_context.o ruby\_xml\_parser\_options.o  
ruby\_xml\_reader.o ruby\_xml\_relaxng.o ruby\_xml\_sax2\_handler.o  
ruby\_xml\_sax\_parser.o ruby\_xml\_schema.o ruby\_xml\_xinclude.o  
ruby\_xml\_xpath.o ruby\_xml\_xpath\_context.o ruby\_xml\_xpath\_expression.o  
ruby\_xml\_xpath\_object.o ruby\_xml\_xpointer.o -L"."  
-L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib"  
-L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L.  
-arch ppc -arch i386 -lruby -L/usr/lib -lxml2 -lz -lpthread -licucore  
-lm -liconv -lz -lm -lpthread -ldl -lm  
ld: duplicate symbol \_IO\_ATTR in ruby\_xml\_parser\_context.o and  
ruby\_xml\_html\_parser\_context.o for architecture i386  
collect2: ld returned 1 exit status  
ld: duplicate symbol \_IO\_ATTR in ruby\_xml\_parser\_context.o and  
ruby\_xml\_html\_parser\_context.o for architecture ppc  
collect2: ld returned 1 exit status  
lipo: can’t open input file: /var/tmp//ccRDOhXE.out (No such file or  
directory)  
make: \*\*\* [libxml\_ruby.bundle] Error 1

how can i solved it?.. It’s my first time whit mac and i never see  
this kind of error :(. anybody can help me please? ☹

---

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 6, 2009, 11:32am UTC](https://www.ruby-forum.com/t/gem-update-problem/162158/2 "2009-03-06T11:32:18Z")

</div>

solved with gem install ar\_mailer

---

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 6, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/gem-update-problem/162158/3 "2009-03-06T12:23:49Z")

</div>

Jose vicente Ribera pellicer wrote:

> solved with gem install ar\_mailer

Ummm, not solvd at all.

Now I can use my localhost but when I try to update my gems I see the  
same error.  
☹

I can work fine, but i don’t like to see this kinds of errors when i try  
to update my gems. Any help please?

---

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 7, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/gem-update-problem/162158/4 "2009-03-07T20:45:50Z")

</div>

Jose vicente Ribera pellicer wrote:

> Jose vicente Ribera pellicer wrote:
> 
> > solved with gem install ar\_mailer
> 
> Ummm, not solvd at all.
> 
> Now I can use my localhost but when I try to update my gems I see the  
> same error.  
> ☹
> 
> I can work fine, but i don’t like to see this kinds of errors when i try  
> to update my gems. Any help please?

The easiest fix is to install the previous version:

% sudo gem install libxml-ruby --version 0.9.8

The alternative is to patch the files yourself in version 0.9.9 which  
appears to have an issue. I’ve made a quick and dirty hack posted on  
Github  
([Fix to make IO\_ATTR set as extern in 2 of 3 files · tadman/libxml-ruby@bf484fe · GitHub](http://github.com/tadman/libxml-ruby/commit/bf484fe3445088052eb0aa6a123870de2bf8e246))
