rbenv

Topics: Ruby

rbenv selects Ruby installations per user or project; a project’s .ruby-version file lets the shell activate the chosen version when entering that directory.

Subtopics

Issues with Homebrew

With Homebrew for Linux installed, I ran into issues where the gem command couldn’t find zlib. I was able to solve this by telling ruby-build to use zlib from Homebrew as well.

RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib)" rbenv install <version>

Bookmarks