Skip to content

Instantly share code, notes, and snippets.

@aspyatkin
Created January 12, 2016 07:33
Show Gist options
  • Save aspyatkin/2a1305cceb9101caa2f6 to your computer and use it in GitHub Desktop.
Save aspyatkin/2a1305cceb9101caa2f6 to your computer and use it in GitHub Desktop.

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