You won't get a fully-functional installation! At the time of writing, it turned out gem
is kind of broken on Ruby 2.3.0. Ruby gem installation fails with an error like kernel_require.rb:54:in
require': cannot load such file -- win32/resolv`.
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 and ruby-build as usual.
$ rbenv install 2.3.0
$ rbenv global 2.3.0
$ rbenv rehash
To check, run ruby -v
. You will get something like that:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-cygwin]
Here is the correct way to fix the issue: https://gist.github.com/panyamin/8d7c03cfbf8d558b1e3f
See https://bugs.ruby-lang.org/issues/12071