Skip to content

Instantly share code, notes, and snippets.

@liamdawson
Created March 7, 2015 12:05
Show Gist options
  • Save liamdawson/5b20f45ae59755dcbc9d to your computer and use it in GitHub Desktop.
Save liamdawson/5b20f45ae59755dcbc9d to your computer and use it in GitHub Desktop.
Fixes a typo in MRI Ruby 2.2.1 when installing via rbenv's ruby-build
--- tool/rbinstall.rb 2015-03-07 21:59:28.834830008 +1000
+++ tool/rbinstall.rb.patch 2015-03-07 21:59:43.202830008 +1000
@@ -711,7 +711,7 @@
install?(:ext, :comm, :gem) do
begin
require "zlib"
- rescue LoadErroe
+ rescue LoadError
end
if defined?(Zlib)
require 'pathname'
@mr-dxdy
Copy link

mr-dxdy commented Apr 16, 2015

Thank you 👍

@nerdyness
Copy link

👍
rbenv install --patch 2.2.1 < 2.2.1-typo.patch

@abhishek-jadav98
Copy link

how to install via rvm??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment