1

When trying to run gem install rake bundler I get the following error

rvmsudo gem install rake bundler
ERROR:  Loading command: install (LoadError)
cannot load such file -- zlib
ERROR:  While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand

What might be causing this problem and how do I fix it?

OS: Ubuntu 10.10 32 bit

awmusic12635
  • 1,241
  • 2
  • 11
  • 13
  • 1
    This has since been answered elsewhere on SO: http://stackoverflow.com/questions/9727908/cannot-load-such-file-zlib-even-after-using-rvm-pkg-install-zlib – weston Jun 19 '12 at 07:12

1 Answers1

1

Sounds like your missing the zlib package.

try:

rvm pkg install zlib

then uninstall and reinstall your gem version with rvm

Dan675
  • 1,697
  • 15
  • 15