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
Written by Eugeniy Belyaev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#