if you get the following when you are running bundle
on OSX Yosemite:
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
you are using the wrong ruby version for CartoDB, please, follow the following instructions to fix it
install rbenv (allows to setup custom ruby version for specific projects)
brew install rbenv ruby-build
rbenv install 1.9.3-p551
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
setup cartodb env to work with 1.9.3-p551
cd path/to/cartodb
rbenv local 1.9.3-p551
install libxml2, icu4c and postgres in case you don't have them installed
brew install libxml2
brew install icu4c
brew install postgres
install bundler
gem install bundler
be careful, if you have installed bundler in the global ruby you may execute the global instead the env one, use ```which bundle`` to know what version are you running
finally, install gems
bundle
Other option is using ruby193 from Homebrew: