Skip to content

Instantly share code, notes, and snippets.

@croaky
Created October 31, 2009 20:07
Show Gist options
  • Save croaky/223215 to your computer and use it in GitHub Desktop.
Save croaky/223215 to your computer and use it in GitHub Desktop.
install MongoDB on OS X

download and un-tar

create db directory

mkdir -p /data/db

export mongo bin directory

export MONGO_BIN="/Users/lawless/Downloads/mongodb-osx-x86_64-1.0.1/bin"
export PATH="$PATH:$MONGO_BIN"

run mongo whenever you need to

mongod run

install the mongo gem from gemcutter

sudo gem install mongo
@yayadrian
Copy link

Thanks for this, the export paths was just what I was looking for.

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