yermej
12/28/2007 4:16:00 AM
On Dec 27, 9:59 pm, Tom Metge <t...@accident-prone.com> wrote:
> in case anyone else is wondering, my solution:
>
> arch = `uname -i`
>
> tom
>
> On Dec 27, 2007, at 8:15 PM, Tom Metge wrote:
>
> > subject says it all- anyone know a way to determine if the host
> > system is 64-bit? i need to load a different module for different
> > environments.
>
> > thanks,
> > tom
You might want to use the constant RUBY_PLATFORM for better
portability. On our x86_64 Linux box, uname -i only returns
AuthenticAMD with no indication that it's 64 bit. On Windows, -i isn't
a valid option for uname.