Instantly share code, notes, and snippets.

Embed
What would you like to do?

Installing Ruby 2.2.4 on Cygwin x64

Prerequisites

Installation

Install essential packages

The following packages should be installed with apt-cyg:

  • git
  • gcc-core
  • gcc-g++
  • make
  • zlib-devel
  • curl
  • autoconf
  • libiconv
  • libiconv-devel
  • rsync
  • patch
  • unzip
  • openssh
  • openssl-devel
  • libxml2-devel
  • libxslt-devel
  • libffi-devel
  • libgdbm-devel
  • libreadline-devel

Install rbenv

Install rbenv and ruby-build as usual.

Build Ruby 2.2.4

$ rbenv install 2.2.4
$ rbenv global 2.2.4
$ rbenv rehash

To check, run ruby -v. You will get something like that:

ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-cygwin]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment