Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get the following error (-bash: initdb: command not found) in the terminal when trying to install postgres on my mountain lion mac osx?

Also, does any one have a good resource for installing postgres, and setting it up? Working with bash and setting the proper path.

I have been trying to install postgres all day and have no luck, I am working with Ruby on Rails.

share|improve this question

migrated from Oct 2 '12 at 6:56

This question came from our site for professional and enthusiast programmers.

The error probably means that your path is not set correctly; what you'll need to do in order to fix it depends on how you're trying to install it.

In any case, the absolute easiest way to get Postgres running on a Mac is ( Just download, drag to Applications, and start.

share|improve this answer
I downloaded/installed it, but when I click it opens to site on the browser. How do I access and setup a db and user? – user630581 Oct 2 '12 at 2:51
Do you see the elephant icon in your menu bar? It has an item for the documentation, which is here: – dpassage Oct 2 '12 at 5:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.