From: WATANABE Hirofumi Date: 2005-06-23T01:02:46+09:00 Subject: Re: How I can find out on which platform I am running (32/64 bits)? Hi, "Joachim Just" writes: > I wonder whether within ruby there is a method to find out on which > platform my application is running. > > Unfortunately, the application has to know if it is a 32-bit or 64-bit > system. > > Any hints are highly appreciated. 64-bit % ruby -ve 'p [0].pack("l!").size' ruby 1.9.0 (2005-05-31) [x86_64-netbsd] 8 32-bit % ruby -ve 'p [0].pack("l!").size' ruby 1.9.0 (2005-06-13) [i386-linux] 4 -- eban