Gem Install Error – no such file to load — zlib
If you are troubled with the below
gem install
ERROR: Loading command: install (LoadError)
no such file to load — zlib
ERROR: While executing gem … (NameError)
uninitialized constant Gem::Commands::InstallCommand
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
Related Posts
Posted on March 28, 2011 at 12:41 pm by Jordan Carter · Permalink
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04
on October 27, 2011 at 11:56 am
Permalink
Awesome, that solved my problem.
Thanks!
on April 23, 2012 at 11:10 am
Permalink
Solved my problem too, thanks a lot!