Skip to content

Instantly share code, notes, and snippets.

@wbotelhos
Created June 19, 2012 18:13
Show Gist options
  • Save wbotelhos/2955683 to your computer and use it in GitHub Desktop.
Save wbotelhos/2955683 to your computer and use it in GitHub Desktop.
Fix zlib load on Rails Install (Ubuntu)
gem install rails
# ERROR: Loading command: install (LoadError)
# cannot load such file -- zlib
# ERROR: While executing gem ... (NameError)
# uninitialized constant Gem::Commands::InstallCommand
sudo apt-get install zlib1g-dev
rvm reinstall 1.9.3
rvm use 1.9.3
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment