When trying to update, an error of incompatibility of Zlib versions occurs.
$ gem update --system ERROR: While executing gem ... (Zlib::VersionError) incompatible version ruby now installed via rvm . Version 2.5.1 .
Through brew all versions of ruby removed.
Through the same brew installed libraries lzlib , zlib , libzip , libtool (all that google).