On Sep 29, 2008, at 12:01 PM, Nobuyoshi Nakada wrote: > I'm not clear which causes this issue, rubygems or hpricot. > > $ sudo ruby19 -v `which gem19` install hpricot > ruby 1.9.0 (2008-09-30 revision 19631) [i686-linux] > Building native extensions. This could take a while... > Successfully installed hpricot-0.6.161 > 1 gem installed > Installing ri documentation for hpricot-0.6.161... > Installing RDoc documentation for hpricot-0.6.161... > > $ ruby19 -v -e 'puts $:.grep(/hpricot/)' > ruby 1.9.0 (2008-09-30 revision 19631) [i686-linux] > /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/lib/universal-darwin9.0 > /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/lib > /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/bin > > $ file /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/lib/universal- > darwin9.0/* > /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/lib/universal- > darwin9.0/fast_xs.so: ELF 32-bit LSB shared object, Intel > 80386, version 1 (SYSV), not stripped > /usr/lib/ruby/gems/1.9.0/gems/hpricot-0.6.161/lib/universal- > darwin9.0/hpricot_scan.so: ELF 32-bit LSB shared object, Intel > 80386, version 1 (SYSV), not stripped I think it is hpricot's fault: $ gem fetch hpricot Downloaded hpricot-0.6.161 $ gem spec hpricot-0.6.161.gem | grep -A2 require_paths require_paths: - lib/universal-darwin9.0 - lib Also, RubyGems doesn't know about platforms that aren't in rbconfig.rb while compiling extensions.