Justin Tyler Wiley

Work, Play, Thoughts

January 10, 2012 at 3:12pm
home
Share & Bookmark

Installing pre-requisites for successful Ruby install on Ubuntu via RVM

Since I am constantly forgetting to do this before compilation, I thought I would post about it in case it benefits others.

$ gem install rake

ERROR:  Loading command: install (LoadError)
    cannot load such file — zlib

Installing rvm and ruby requires various per-requisites, namely development libraries ruby builds against during compilation.  The RVM site leads you towards installation via RVM package, which introduces a whole other set of sources.  A better solution is installing the appropriate native packages beforehand.

See also:

http://stackoverflow.com/questions/2441248/rvm-ruby-1-9-1-install-cant-locate-zlib-but-its-runtime-and-dev-library-are-the

You're settling for good when there's awesome.  Upgrade to Firefox 3.6!