Friday, August 3, 2012

Update Ruby from source for Cygwin

Edit: Added LibYAML and OpenSSL extension instructions from

Make sure Cygwin OpenSSL packages are installed.

Run Cygwin console as Administrator if using Windows 7, Cygwin was installed as Administrator and UAC is enabled, install may need admin permissions and Cygwin doesn't have a "sudo" command.

If you get fork errors, try rebasing Cygwin.

If rebasing fails, try deleting C:\cygwin\etc\rebase.*

> $ /bin/rebaseall
> /usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/cygperl5_14_2.dll: skipped because nonexistent.

And this is caused by a minor perl packaging problem. You can simply
ignore this warning.
I'll fix it with the next perl update.

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-cygwin]
$ cd /tmp
$ wget
$ tar xvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4/
$ ./configure && make && make install
$ wget
$ tar xvf ruby-1.9.3-p392.tar.gz
$ cd ruby-1.9.3-p392.tar.gz/ext/openssl
$ ruby extconf.rb
$ make && make install
$ cd ruby-1.9.3-p392/
$ ./configure && make && make install
$ wget
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [i386-cygwin]

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.