postgres.app 的安装位置、运行位置存在问题,但是当我输入 which psql 时,我会收到“/usr/bin/psql”,而不是 postgres.app 期望的正确路径。当我回显我的 PATH 时,我得到以下信息:
/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
正如您在我的路径中看到的那样,但我不知道为什么它不会选择正确的 psql。任何援助将不胜感激。