Quick Tips How to Install Gems in Ruby on Rails by Jason Seifer 0:06. Hi, I'm Jason. In this treehouse quick tip, we're going to talk about how to install Ruby gems. A Ruby gem is a library that you can use in your Ruby applications. It's really easy to install a gem.
Active2 months ago
I'm new to ruby. I tried to install GEM on my PC by following the steps given in the site http://rubygems.org/pages/download .
I downloaded the package from the mention site and changed the directory to the directory in which the setup resides and tried to run setup using the command, Free download mp3.
setup.rb in command prompt.
but I get a window pop up that says 'Windows can't open this file' and prompts me to select a program to open this file.
What should I do now? Let me know, if I do something wrong.
user2797743user2797743
7 Answers
I recommend you just use rubyinstaller
It is recommended by the official Ruby page - see https://www.ruby-lang.org/en/downloads/
Ways of Installing Ruby
We have several tools on each major platform to install Ruby:
![]()
86511 gold badge1515 silver badges3737 bronze badges
MirageMirage
Ruby Installer For Windows
To setup you Ruby development environment on Windows:
For Ruby 2.4 or later, run the extra installation at the end to install the DevelopmentKit. If you forgot to do that, run
ridk install in your windows console to install it.
For earlier versions:
Hope this helps.
PHPirate
2,33933 gold badges2323 silver badges4747 bronze badges
belgorosbelgoros
1,75833 gold badges1111 silver badges2525 bronze badges
Installing Ruby
Go to http://rubyinstaller.org/downloads/
Make sure that you check 'Add ruby .. to your PATH'.
Now you can use 'ruby' in your 'cmd'.
If you installed ruby 1.9.3 I expect that the ruby is downloaded in
C:Ruby193 .
Installing Gem
install Development Kit in rubyinstaller.Make new folder such as
C:RubyDevKit and unzip.
Go to the devkit directory and type
ruby dk.rb init to generate config.yml .
If you installed devkit for 1.9.3, I expect that the
config.yml will be written as C:Ruby193 .
If not, please correct path to your ruby folders.
After reviewing the
config.yml , you can finally type ruby dk.rb install .
Now you can use 'gem' in your 'cmd'. It's done!
MiaeKimMiaeKim
One tree hill season 1 episode 2. 7th edition mtg. Another way is to let chocolatey manage your ruby package (and any other package), that way you won't have to put ruby in your path manually:
Install chocolatey first by opening your favourite command prompt and executing:
then all you need to do is type
In your command prompt and the package installs.
Using a package manager provides overall more control, I'd recommend this for every package that can be installed via chocolatey.
nimrodnimrod
Install Ruby Gems Windows 10
3,44833 gold badges2727 silver badges3939 bronze badges
fangxingfangxing
2,37111 gold badge2323 silver badges3131 bronze badges
Check that ruby interpreter is already installed and try 'ruby setup.rb' in command prompt.
ITemiusITemius
Ruby Gems Download
I use scoop as command-liner installer for Windows.. scoop rocks!
The quick answer (use PowerShell):
Longer answer:
What Is A Ruby Gem
Just searching for ruby:
Check the installation info :
Output from installation:
How To Install Ruby
nephewtomnephewtom
![]() protected by Community♦Jul 2 '16 at 3:48Ruby Gems Repository
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged rubygeminstall or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |