Having an issue with postgres.app where its installed, its running, but when I enter
which psql
I then receive “/usr/bin/psql” and not the correct path that postgres.app expects.
When I echo my PATH I get the following:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/username/.rvm/bin:/usr/local/mysql/bin:/Applications/Postgres.app/Contents/MacOS/bin:/Users/username/.rvm/gems/ruby-1.9.3-p0/bin:/Users/username/.rvm/gems/ruby-1.9.3-p0@global/bin:/Users/username/.rvm/rubies/ruby-1.9.3-p0/bin:/Users/username/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Applications/MAMP/Library/bin/mysql:/Users/username/.rvm/bin
As you can see its in my Path but I have no idea why it wont choose the correct psql. Any assistance would be appreciated.
If
psqlis both in/usr/binand/Applications/Postgres.app/Contents/MacOS/bin, the one in/usr/binwill be preferred according to yourPATHspecification. Consider putting the/Applications/...entry before/usr/bin: