Skip to content

Instantly share code, notes, and snippets.

@bjallen
Created October 24, 2012 14:05
Show Gist options
  • Save bjallen/3946223 to your computer and use it in GitHub Desktop.
Save bjallen/3946223 to your computer and use it in GitHub Desktop.
zlib error when using rbenv across ctovm instances
https://github.com/sstephenson/ruby-build/wiki
I had rbenv installed in my global home dir, but got this error when trying to install a gem:
-bash-4.1$ gem install httparty
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
# Installed zlib-devel
-bash-4.1$ /project/admin/bin/sudo yum install zlib-devel
# Reinstalled ruby
-bash-4.1$ rbenv install 1.9.3-p194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment