Skip to content

Instantly share code, notes, and snippets.

@javisantana
Created December 9, 2014 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javisantana/81539b0d45deb1714671 to your computer and use it in GitHub Desktop.
Save javisantana/81539b0d45deb1714671 to your computer and use it in GitHub Desktop.
installing cartodb on OSX yosemite

cartodb installation on yosemite

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
@rochoa
Copy link

rochoa commented Dec 10, 2014

Other option is using ruby193 from Homebrew:

brew tap homebrew/versions
brew update
brew install ruby193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment