From: Rick DeNatale Date: 2010-01-16T09:48:42+09:00 Subject: Re: How to know the OS architecture (32 or 64 bits)? On Fri, Jan 15, 2010 at 4:31 PM, Iñaki Baz Castillo wrote: > No, I've tested it in a 64 bits server running Linux 32 bits: > >  RbConfig::CONFIG['host_os']  => "linux-gnu" >  RbConfig::CONFIG['host_cpu'] => "i486" >  1.size => 4 I think that the value of 1.size depends not on what platform Ruby is running on but how it was configured when Ruby was compiled. You can have a version of Ruby compiled for 32-bits which runs on a 64-bit platform. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale