From: mortee Date: 2007-09-30T09:57:02+09:00 Subject: Re: mac - hpricot problems Again replying to myself: After a lot of experimentation, I concluded that my problems are caused by the fact that the Tiger version of the One Click Installer (rubyosx) does assume an intel CPU at multiple spots, thus native extensions fail to build on a ppc platform. Now I can successfully require hpricot on that box. It seems to be a mostly unrelated issue that my script crashes at random points with segmentation fault. This seems to me a ruby interpreter issue (it crashes e.g. in erb code, not only in the compiled hpricot extension). mortee mortee wrote: > 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)