Installing RubyGems in Windows
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:
- On Linux/UNIX, you can use the package management system of your
distribution or third-party tools (rbenv and RVM).- On OS X machines, you can use third-party tools (rbenv and RVM).
- On Windows machines, you can use RubyInstaller.
Trying to install a gem on ruby (Windows 10)
First you should check this out if you haven't: https://rubyinstaller.org/
then on that site it has instructions on how install the development kit.
if you look at the documentation for devkit https://github.com/oneclick/rubyinstaller/wiki/Development-Kit follow the instructions
- cd to devkit directory
ruby dk.rb init
ruby dk.rb install
After those steps above try to install your gem again.
How to install a ruby gem on windows 7
I guess you should try railsinstaller for windows that includes rubygems. Then gem install tiny_tds
in the command prompt.
SSL Error When installing rubygems, unable to install rails gem in windows 10
now I got solution for this issue, using this link http://guides.rubygems.org/ssl-certificate-update/#manual-solution-to-ssl-issue
we need to add GlobalSignRootCA.pem this certificate in ssl_certs folder insted of AddTrustExternalCARoot-2048.pem
go through that above link.
Ruby install gem offline in Windows
Got the reason. I ran all commands in Windows PowerShell
.
Now I tried to do it in usual cmd.exe
- and it just worked.
Just for a case here is how I installed sqlite3.gem
: followed instructions from https://stackoverflow.com/a/16023062 and executed command:
gem install sqlite3-1.3.10.gem --local --platform=ruby -- '--with-sqlite3-dir="c:/programs/sqlite" --with-sqlite3-lib="c:/programs/sqlite/.libs" --with-sqlite3-include="c:/programs/sqlite"'
Thank you for comments, they helped to correct the command.
Related Topics
What Are the Ruby File.Open Modes and Options
What Does a Double * (Splat) Operator Do
Rails Has_Many :Through Find by Extra Attributes in Join Model
How to Find an Item in Array Which Has the Most Occurrences
Why Does Installing Nokogiri on MAC Os Fail With Libiconv Is Missing
Continuously Read from Stdout of External Process in Ruby
What Are the Ruby Gotchas a Newbie Should Be Warned About
Limitations in Running Ruby/Rails on Windows
Getting the Hostname or Ip in Ruby on Rails
Ruby Style: How to Check Whether a Nested Hash Element Exists
Optional Argument After Splat Argument
How to Use Ruby/Rails Variables Inside Sass
What Is the Best Method of Handling Currency/Money
Test If String Is a Number in Ruby on Rails