Fixing Non Responsive Ruby In Babun

To install github-pages in babun, I first needed to install ruby. This proved more difficult that I initially thought.

My first attempt of pact install ruby lead to a non-responsive ruby and gem:

[15:03:32] ~
$ ruby -v

[15:03:33] ~
$ gem -v

I performed an strace to see what was going on. I received this error dialog pointing to an issue with cygruby220.dll:

The procedure entry point getcontext could not be located in the dynamic link library

A web search pointed me to a babun issue which lead me to the following fix:

  1. Uninstall ruby: pact remove ruby
  2. Close any babun shells you have open.
  3. Run which could be found in your Windows’ %HOMEPATH%\.babun.
  4. Finally, reinstall ruby: pact install ruby

Now, ruby and gem are responsive:

[15:10:36] ~
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-cygwin]

[15:31:06] ~
$ gem -v