Postgres.app, but which psql displays / usr / bin / psql and not the path entered in zshrc

You have a problem with postgres.app, where it is installed, it starts, but when I enter which psql then I get "/ usr / bin / psql" and not the correct path that postgres.app expects. When I repeat 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 it in my Path, but I have no idea why it will not choose the correct psql. Any help would be appreciated.

+5
source share
2 answers

If it psqlis in /usr/binand /Applications/Postgres.app/Contents/MacOS/binthen in /usr/binwill be preferable according to your specification PATH. Consider the entry /Applications/...before /usr/bin:

/Applications/Postgres.app/Contents/MacOS/bin:/usr/bin:/bin:/usr/sbin:/sbin:...
+10
source

/etc/paths , /Applications/Postgres.app/Contents/MacOS/bin . : fooobar.com/questions/12873/...

0

All Articles