Gem Install Error – no such file to load — zlib
If you are troubled with the below
ERROR: Loading command: install (LoadError)
no such file to load — zlib
ERROR: While executing gem … (NameError)
uninitialized constant Gem::Commands::InstallCommand
Then you have installed ruby without the nessacary libraries available.
Remove the ruby install (hopefully just rvm remove 1.9.2)
Then install zlib1g-dev libssl-dev libreadline5-dev as detailed at the start of this post on installing ruby on rails on Ubuntu
Now install ruby again and try again!
Hope this helps
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04