# Hpricot segfault OSX - ruby1.9.1

**URL:** <https://rubytalk.org/t/hpricot-segfault-osx-ruby1-9-1/55380>\
**Category:** ruby-talk\
**Created:** [15 September 2009 07:45 UTC](https://rubytalk.org/t/hpricot-segfault-osx-ruby1-9-1/55380 "2009-09-15T07:45:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Salter](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Adam\_Salter](https://rubytalk.org/u/Adam_Salter)\
**Post date:** [15 September 2009 07:45 UTC](https://rubytalk.org/t/hpricot-segfault-osx-ruby1-9-1/55380/1 "2009-09-15T07:45:06Z")

</div>

Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby 1.9.1?

I've installed ruby with MacPorts.

Here's the error:

> /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/fast\_xs.bundle: [BUG] Segmentation fault  
> ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
> 
> Abort trap

ruby -v:  
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]

-Adam

---

<div class="post-metadata">

**Author:** ![Eric\_Wong2](https://avatars.discourse-cdn.com/v4/letter/e/b9e5f3/32.png) [@Eric\_Wong2](https://rubytalk.org/u/Eric_Wong2)\
**Post date:** [15 September 2009 22:50 UTC](https://rubytalk.org/t/hpricot-segfault-osx-ruby1-9-1/55380/2 "2009-09-15T22:50:00Z")

</div>

> Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby 1.9.1?
> 
> I've installed ruby with MacPorts.
> 
> Here's the error:
> 
> > /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/  
> > fast\_xs.bundle: [BUG] Segmentation fault  
> > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- looks like your app is running a different Ruby install

> **···**
>
> Adam Salter \<adam.q.salter@gmail.com\> wrote:
> 
> > > Abort trap
> > 
> > ruby -v:  
> > ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]

---

<div class="post-metadata">

**Author:** ![Adam\_Salter](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Adam\_Salter](https://rubytalk.org/u/Adam_Salter)\
**Post date:** [16 September 2009 01:55 UTC](https://rubytalk.org/t/hpricot-segfault-osx-ruby1-9-1/55380/3 "2009-09-16T01:55:19Z")

</div>

OSX comes with a default install of ruby 1.8.7, in a completely seperate directory structure.

All my other gems etc are compiling correctly... I agree somehow the hpricot compilier seems to find the wrong version of ruby... to compile against.

Just wondering if anybody else has since this, and if so is there a 'fix'?

-Adam

> **···**
>
> On 16/09/2009, at 8:50 AM, Eric Wong wrote:
> 
> > Adam Salter \<adam.q.salter@gmail.com\> wrote:
> > 
> > > Is anybody else seeing a segfault on hpricot on OSX 10.6 and Ruby 1.9.1?
> > > 
> > > I've installed ruby with MacPorts.
> > > 
> > > Here's the error:
> > > 
> > > > /opt/local/lib/ruby1.9/gems/1.9.1/gems/hpricot-0.8.1/lib/  
> > > > fast\_xs.bundle: [BUG] Segmentation fault  
> > > > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- looks like your app is running a different Ruby install
> > 
> > > > Abort trap
> > > 
> > > ruby -v:  
> > > ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
