From: Rob Biedenharn Date: 2007-12-28T13:38:27+09:00 Subject: Re: testing for 64-bit environment On Dec 27, 2007, at 11:20 PM, yermej wrote: > 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. It's not a valid option on Mac OS X either (and there's no other option to uname that indicates the word-size of the CPU). -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com