

Your output should look like the following: Let’s check what version is running: postgres -V Execute the following command: pg_ctl -D /usr/local/var/postgres start & brew services start postgresqlįinally, let’s make sure Postgres is installed and running. Let’s go ahead and start Postgres running, and make sure Postgres starts every time your computer starts up. Most importantly are the easy-to-miss instructions at the very end of the install:
WORDPRESS FOR MAC LION HOW TO
It also takes care of knowing which are the latest versions, where to get them, and how to unpack them. Homebrew takes care of resolving Postgres’ dependencies, which in this case are OpenSSL and Readline. You should then see the following output:
WORDPRESS FOR MAC LION INSTALL
Run the following command to install PostgreSQL using Homebrew: brew install postgresql Now that we have Homebrew, installing PostgreSQL is very easy. Now that we have Homebrew, we can proceed to install Postgres! 2. You should see output similar to the following: This one downloads the script at the given URL, and then the Ruby interpreter executes it. The rest of this command (the curl command) is a tool to make web requests from your command line. Let’s start by copying and pasting the following command into our command line: /usr/bin/ruby -e "$(curl -fsSL )"ĭon’t worry about what all that does-as long as you’re using MacOSX 10.7 or higher, the Ruby interpreter comes pre-installed. If you already have Homebrew installed, you can skip to Installing PostgreSQL. To install PostgreSQL on the command line we will be using a package manager called Homebrew. For this tutorial, let’s see how to install on the command line. You can pick whichever option is right for you.

This tutorial will teach you how to set up, configure, and use PostgreSQL on MacOSX 10.7 (Lion) and above. If you’re here reading this tutorial, hopefully, you are trying to do the same! The other day I began a new Node.js project and wanted to use PostgreSQL as my database backend.
