cannot load such file — zlib

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn


You are trying to install a gem with rvm but you are getting the following error:

ERROR: Loading command: install (LoadError
cannot load such file — zlib
ERROR: While executing gem … (NameError)
uninitialized constant Gem::Commands::InstallCommand


Following from the post here

you would need to install the zlib library with rvm, uninstall your ruby version and then install the ruby version again with the folowing:


Leave a Reply