From: mortee Date: 2007-09-28T11:18:39+09:00 Subject: Re: mac - hpricot problems Hi, I just ran into the same trouble with Hpricot on OS X too. I can install any version using gem install, but I get errors when trying to use the lib. I tried the ruby and jruby variant, none helped. I tried to fetch the source from svn and build it. After fiddling a bit with the ext's generated makefile (it included -arch i386) I could get it to build, and pass tests. Now it's also installed as hpricot (0.6.155). Yet it tells me: $ ruby -rubygems -rhpricot -e '' ruby: no such file to load -- hpricot (LoadError) Ryan Davis wrote: > % find `gem env gemdir`/gems/hpricot-* -name \*.bundle -ls > 13756612 240 -rw-r--r-- 1 root ryan 120824 Jul 11 10:20 > /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.6/ext/hpricot_scan/hpricot_scan.bundle > > 13756606 240 -rwxr-xr-x 1 root ryan 120824 Jul 11 10:20 > /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/i686-linux/hpricot_scan.bundle > > > (no idea why one is under i686-linux... but you should definitely see an > hpricot_scan.bundle if you installed correctly. > > If it is missing, what is the output from: > http://www.zenspider.com/~ryand/wtf.rb ? I checked, and I have both hpricot_scan.bundle, but after building specifically for the ppc platform, the second one is in a universal-darwin8.0 subdirectory. mortee Some system info: $ sw_vers ProductName: Mac OS X Server ProductVersion: 10.4.10 BuildVersion: 8R218 $ ruby -ropen-uri -e 'eval(open("http://www.zenspider.com/~ryand/wtf.rb").read)' ruby: ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] uname: Darwin neomax.hu 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc config: prefix = /usr/local SHELL = /bin/sh LIBS = -lpthread -ldl -lobjc build = i686-apple-darwin8.10.1 target = i686-apple-darwin8.10.1 CC = gcc CFLAGS = -g -O2 -fno-common -pipe -fno-common LDFLAGS = CCDLFLAGS = -fno-common LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace LIBRUBY_LDSHARED = cc -dynamiclib -undefined suppress -flat_namespace gcc: powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rubygems: actionmailer (1.3.3) actionpack (1.13.3) actionwebservice (1.2.3) activerecord (1.15.3) activesupport (1.4.2) cgi_multipart_eof_fix (2.1) daemons (1.0.7) fastthread (1.0) gem_plugin (0.2.2) hpricot (0.6.155) mongrel (1.0.1) rails (1.2.3) rake (0.7.3) rfm (1.0.0) sources (0.0.1) sqlite3-ruby (1.2.1) inline: Testing: :