Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check version of Ruby dev kit installed in my Windows?

Tags:

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

like image 817
Jitendra Vyas Avatar asked Jul 22 '13 14:07

Jitendra Vyas


People also ask

How do I know if Ruby is installed on Windows?

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.

What is DevKit in Ruby?

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.

Where is Ruby installed?

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 ~/.

What version of Ruby Do I have console?

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.


2 Answers

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.)

like image 62
qqbenq Avatar answered Sep 29 '22 11:09

qqbenq


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.

like image 45
BeardedCoder Avatar answered Sep 29 '22 10:09

BeardedCoder