Installing Rubygems in Windows

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

  1. cd to devkit directory
  2. ruby dk.rb init
  3. 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



Leave a reply



Submit