Avinash Duggirala
Avinash Duggirala

Reputation: 371

How to install ruby 2.1.2 on windows?

I didn't get any windows installer to install ruby 2.1.2. The only resource I found is a tar/zip file that is available at https://www.ruby-lang.org/en/downloads/.

I have no idea how to install this , anyone provide some suggestions how to install 2.1.2 version of ruby.

Upvotes: 2

Views: 6256

Answers (4)

Fernando Vieira
Fernando Vieira

Reputation: 3333

The project Ruby Installer has published Ruby 2.1.3 for Windows (32 and 64 bits versions) on their download page:

http://rubyinstaller.org/downloads/

You will also find there a new build for Ruby 2.0 (p576).

Although they didn´t updated their news page yet.

Upvotes: 2

Bob Wojack
Bob Wojack

Reputation: 33

I have been able to crack the zlib nut (for Windows 8.1 -- see below), but I'm still struggling with openssl, readline, etc... I find it amazing that this documentation does not seem to be easily found, and that some experts/respondents advise using the 2.0 installer without considering that users are fighting this fight because we need the 2.1.2 functionality.

I downloaded zlib128-dll.zip from http://zlib.net and unzipped the contents to a directory (e.g., c:\zlib).

Then following some hints from this post (https://www.ruby-forum.com/topic/4421852), I created these dirs off of my c:\ruby-build\usr directory:

zlib
zlib\include
zlib\lib

Then I copied some files from my C:\zlib directories to my c:\ruby-build\usr directories:

*.h files (both) from C:\zlib\include to c:\ruby-build\usr\zlib\include 
zdll.lib from C:\zlib\lib to c:\ruby-build\usr\zlib\lib. 
zlib1.dll *AS* zlib.dll from C:\zlib to both c:\ruby-build\usr\zlib\lib and c:\ruby-build\usr\bin 
    (not sure which one or both are necessary).

Then from a VS 2012 Native Tools Command Window, I naviagted to C:\ruby-2.1.2\ext\zlib and executed:

\ruby-build\usr\bin\ruby extconf.rb --with-zlib-dir=c:/ruby-build/usr/zlib

Then nmake, followed by nmake install, and voila, I zlib was finally installed.

Let me know if you any questions about my steps.

Upvotes: 2

Devarsh Desai
Devarsh Desai

Reputation: 6112

That's a good question. It seems that 2.1.2 is not easily available on bitnami or ruby installer.

Check this out.

If it's not worth the pain or if you don't explicitly need the features of 2.1.2, I would recommend just installing 2.0.x's stable release.

Please let me know if you have any questions!

Upvotes: 1

Eric Andres
Eric Andres

Reputation: 3417

The standard way to install Ruby on Windows is with Ruby Installer. However, due to some bugs/regressions in Ruby, there has been some hold up creating an installer for Ruby 2.1 on Windows. To get Ruby 2.1 on Windows, you'll likely have to compile from source.

Upvotes: 1

Related Questions