bash - Mac OS X 10.11 - Add Postgres to $PATH Unsuccessful -
i trying install postgres in order use heroku.
i following instructions in heroku tutorial, , after postgres installation (which successful), says configure .bash_profile allow postgres command line functionality.
i following instructions here, unable add line:
export path=$path:/applications/postgres.app/contents/versions/latest/bin
that folder in fact contain "psql" on computer, should work. here current .bash_profile:
# setting path python 2.7 # orginal version saved in .bash_profile.pysave path="/library/frameworks/python.framework/versions/2.7/bin:${path}" export path # next line updates path google cloud sdk. source '/users/user/google-cloud-sdk/path.bash.inc' # next line enables shell command completion gcloud. source '/users/user/google-cloud-sdk/completion.bash.inc'
i tried add postgres line end of file, not working. after searching online, there not seem consensus on how add paths .bash_profile. have tried many versions listed, none have worked.
please let me know if i'm doing incorrectly!
add line end of .bash_profile
:
export path=/applications/postgres.app/contents/versions/latest/bin:$path
this makes search of binary in location "before rest of path"
kill instances of terminal , open again, should work.
try which xxx
xxx name of binary inside /applications/postgres.app/contents/versions/latest/bin , check if it's returning location.
tell me if works.
Comments
Post a Comment