Last Updated: February 25, 2016
·
7.164K
· zhekanax

Using bundler with rbenv & homebrew

Everytime I starting new project something goes wrong way. So I got this cheat-sheet for future me.

Check for libraries

$ brew install openssl readline

Install rbenv w/ plugins

$ brew install rbenv
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ git clone -- git://github.com/carsomyr/rbenv-bundler.git   ~/.rbenv/plugins/bundler

Install ruby & bundler

$ CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl` --with-readline-dir=`brew --prefix readline`" rbenv install 1.9.3-p194
$ gem install bundler
$ bundle install --path vendor/bundle
$ rbenv rehash