[Answered ]-Problems setting up a postgreSQL database for a django project

2đź‘Ť

PATH =’Library/PostgreSQL/9.2/bin is overwriting your global $PATH with just the PostgreSQL binaries. It should be the following instead:

PATH="$PATH:/Library/PostgreSQL/9.2/bin"

This appends the PostgreSQL bin directory to your $PATH, instead of overwriting it. Don’t forget to start a new terminal session after you make the edit, or do the following in your current session:

source ~/.bash_profile

In general, the best way to install open source software, packages and utilities on OSX is to use homebrew. Homebrew is a package manager for OSX to simplify the installation and management of programs such as PostgreSQL, and many other popular open source projects. Check it out!

👤TheDeveloper

0đź‘Ť

While it’s not exactly an answer to your “question”, it might solve the problem for you. Have you checked out the PostgreSQL “app”? It’s created by Matt Thompson & supported by Heroku Postgres and is meant to make PostgreSQL development easier for people using Mac. You might want to give it a look. Here’s a link. Or just google “Postgresapp”.

👤David S

Leave a comment