0

I'm going through a server setup guide and I'm trying to download rubygems:

gem update --system

I am on version 2.2.2 of ruby gems, version 2.1.2p95 of ruby, and ubuntu 14.04, but it doesn't appear to be working. Looking further into this, I found an alternative to the command here on their official site.

However, when I run:

~/ruby-src/ruby-2.1.2$ sudo gem install rubygems-update

I'm still getting the same error which is:

ERROR:  Loading command: install (LoadError)
cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
sawa
  • 165,429
  • 45
  • 277
  • 381
  • As for me, use bundler and you will not have any of this problems. – Eugene Tkachenko Feb 23 '15 at 16:59
  • possible duplicate of [cannot load such file -- zlib even after using rvm pkg install zlib](http://stackoverflow.com/questions/9727908/cannot-load-such-file-zlib-even-after-using-rvm-pkg-install-zlib) – Brad Werth Feb 23 '15 at 16:59

0 Answers0