Skip to content

Instantly share code, notes, and snippets.

@johnhaitas
Created November 9, 2011 18:32
Show Gist options
  • Save johnhaitas/1352392 to your computer and use it in GitHub Desktop.
Save johnhaitas/1352392 to your computer and use it in GitHub Desktop.
rake gem install error - zlib
% rvm pkg install zlib
% rvm install 1.9.3 --with-zlib-dir=~/.rvm/usr
% rvm use 1.9.3
% gem install rake
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommandERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
@johnhaitas
Copy link
Author

solved by changing
% rvm install 1.9.3 --with-zlib-dir=~/.rvm/usr
to
% rvm install 1.9.3 --with-zlib-dir=${HOME}/.rvm/usr

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