Ruby dev kit is installed in my Windows 7. How can I check whether it's 32 bit or 64 bit and version number
I'm not asking How to check ruby version which is ruby -v
First, check if you already have Ruby installed. Open the command prompt and type ruby -v. If Ruby responds, and if it shows a version number at or above 2.2. 2, then type gem --version.
Solution was named DevKit. It is a set of MSYS and MinGW based build tools that make it easy and simple to build native C/C++ Ruby extensions. For Ruby 2.2 DevKit is based on 32 bit MinGW 4.7. 2 compiler suite for Windows. Go ahead and download RubyInstaller's Ruby DevKit self extracting archive and unpack it.
When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/. gem/ruby/1.9. 1 . The commands provided by the gems you installed will end up in ~/.
How to find the ruby version in a project? In Terminal, you can type the ruby --version command if ruby is installed. To know the ruby version in the interactive ruby terminal(IRB) console.
On the 32 bit vs 64 bit part:
ruby -e "puts 1.size"
The 32 bit version would yield 4
, the 64 bit version 8
. (This is the size of a FixNum
in bytes.)
Apparently the answer is that there is no way to get the version of DevKit (according to this post on the Google groups for RubyInstaller). To paraphrase that posting, because it is not an installer it doesn't present version information. It would appear the only way to know for sure is to dig up the original zip file used to install it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With