From: Eric Christopherson Date: 2013-02-07T04:45:29+09:00 Subject: Re: error: cannot load such file — zlib On Wed, Feb 6, 2013 at 7:50 AM, Efe A. wrote: > When i try to install rails in Ubuntu 12.10 i get this error: > > [CODE] $ gem install rails > ERROR: Loading command: install (LoadError) > cannot load such file -- zlib > ERROR: While executing gem ... (NameError) > uninitialized constant Gem::Commands::InstallCommand[/CODE] Did you run `rvm requirements`? I know I recently had the same trouble, and the requirements list led me to install the right Ubuntu packages. I don't recall offhand if it only required zlib1g-dev and zlib1g, or if something else was required; but I didn't have to use `rvm pkg` at all once I had the debs installed.