From: "Daniel Schömer" Date: 2008-05-01T00:40:16+09:00 Subject: Re: determining what os is running Hi! Stephen Bannasch wrote: > [...] > > I'd love to know what people get on other Ruby VMs (1.8, 1.9. > Rubinius) and other host OS's get as output running this script: > > require 'rbconfig' > puts "Ruby Info:" > puts " RUBY_PLATFORM: #{RUBY_PLATFORM}" > puts " RUBY_VERSION: #{RUBY_VERSION}" > puts " Config::CONFIG['RUBY_INSTALL_NAME']: > #{Config::CONFIG['RUBY_INSTALL_NAME']}" > puts " Config::CONFIG['host_os']: #{Config::CONFIG['host_os']}" > > [...] I'm running Gentoo/Linux on AMD Athlon X2 CPU (32-bit). # ruby a.rb Ruby Info: RUBY_PLATFORM: i686-linux RUBY_VERSION: 1.8.6 Config::CONFIG['RUBY_INSTALL_NAME']: ruby18 Config::CONFIG['host_os']: linux-gnu # ruby19 a.rb Ruby Info: RUBY_PLATFORM: i686-linux RUBY_VERSION: 1.9.0 Config::CONFIG['RUBY_INSTALL_NAME']: ruby19 Config::CONFIG['host_os']: linux-gnu # jruby a.rb Ruby Info: RUBY_PLATFORM: java RUBY_VERSION: 1.8.6 Config::CONFIG['RUBY_INSTALL_NAME']: jruby Config::CONFIG['host_os']: linux ruby is ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux] ruby19 is ruby 1.9.0 (2008-04-28 revision 16233) [i686-linux] svn trunk jruby is ruby 1.8.6 (2008-04-29 rev 6586) [i386-jruby1.1.1+] svn trunk Daniel