From: yermej Date: 2007-12-28T13:20:13+09:00 Subject: Re: testing for 64-bit environment On Dec 27, 9:59 pm, Tom Metge 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.