That is quite odd. what does ruby -e 'puts RUBY_VERSION' say?

On Wed, Sep 16, 2009 at 12:38 PM, Adam Salter <[email protected]>wrote:

> I don't know what the hell is going on:
>
> [r...@omegatron ~]# ruby -v
> ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
> [r...@omegatron ~]# file `which ruby`
> /opt/local/bin/ruby: Mach-O 64-bit executable x86_64
>
> ruby is saying it's 32-bit, file is saying it's 64-bit
>
> -Adam
>
> On 15/09/2009, at 8:54 PM, Bodaniel Jeanes wrote:
>
> using stock ruby you definitely want to be doing that, he is using macports
> ruby 1.9 which based on his `ruby -v` output is 32-bit so he should in fact
> ensure that he is compiling the extensions as 32-bit
>
> On Tue, Sep 15, 2009 at 8:21 PM, Pat Allan <[email protected]>wrote:
>
>>
>> Not sure if it's relevant, but for Snow Leopard I installed mysql, pg
>> and do_sqlite3 gems configured for 64bit like so:
>>   sudo env ARCHFLAGS="-arch x86_64" gem install mysql
>>
>> --
>> Pat
>>
>> On 15/09/2009, at 11:04 AM, Bodaniel Jeanes wrote:
>>
>> > I'm still running 187 but i have 191 installed (from source). I just
>> > tried installing it and I could use the gem fine. I installed like
>> > so, just to be sure:
>> >
>> > $ sudo env ARCHFLAGS="-arch i386" gem install hpricot
>> >
>> >
>> > On Tue, Sep 15, 2009 at 6:20 PM, Adam Salter
>> > <[email protected]> wrote:
>> > Interesting point...
>> > Are you running ruby 1.9.1/hpricot 64bit?
>> >
>> > -Adam
>> >
>> > On 15/09/2009, at 6:09 PM, Bodaniel Jeanes wrote:
>> >
>> >> One thing to consider is that the ruby 1.8.7 that comes with 10.6
>> >> is 64-bit but your ruby 1.9 seems to be 32-bit. Possibly the gem
>> >> install picked up on some incorrect env variables and defaulted to
>> >> building Hpricot for 64-bit?
>> >>
>> >> On Tue, Sep 15, 2009 at 5:43 PM, Adam Salter
>> >> <[email protected]> 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]
>> >>>
>> >>> Abort trap
>> >>
>> >> ruby -v:
>> >> ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
>> >>
>> >> -Adam
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> >
>> >
>> > >
>>
>>
>>
>>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to