Skip to content
Related Articles
Open in App
Not now

Related Articles

How to install RubyGems in Windows?

Improve Article
Save Article
  • Last Updated : 26 Oct, 2021
Improve Article
Save Article

In this article, we will look into the process of installing RubyGems on Windows. RubyGems is a Ruby package manager that provides Ruby programs and libraries (also known as Gems) and the tools associated with installing and managing Ruby packages and servers.

Installing RubyGems on Windows:

Follow the below steps to install RubyGems on Windows:

Step 1: At first search, ruby download in your browser.

Step 2: Then Click on the Rubyinstaller for windows.

Step 3: Then click on the Download Button.

Step 4: Then according to your operating system download your suitable one. For 64 bit download the following one

Step 5: Then click on the downloaded file. Then accept the license & click next.

Step 6: Then click on the Next button.

Step 7: Then we have to wait for some time for installing.

Step 8: Then we have to go to the C drive of the computer. Then move to the Ruby 27-x64 folder. And then the bin folder. Then copy the path.

Step 9: Then we have to go to the environment variable.

environment variable

Step 10: Then we will move to the path & insert the copied path..

Step 11: Then after installing Ruby will open & we have to click Enter.

Step 12: After waiting some time again we have to click Enter. Then it will close.

Step 13: Then we will check it. We will open the command prompt. There we will type the following commands: 

ruby -v
ruby --version
gem -v

These will give the below-shown output:

Step 14: Then we will run a simple program. By writing the command ruby -e “puts ‘Hello World…'”. In ruby puts means to print anything. This will generate Hello World

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!