在OS X上使用Postgres.app时如何在路径上放置psql? [英] How to put psql on the path when using Postgres.app on OS X?
问题描述
我已经在Mac上安装了Postgres93。我可以打开该应用程序,然后通过该应用程序打开psql打开与psql的命令行界面。
I've installed Postgres93 on my Mac. I can open the application, and "Open psql" through the app which opens up a command line interface with psql.
但是,当我键入时$其中psql
不返回任何内容。安装路径为 /Applications/Postgres93.app
。如何使 $哪个psql
显示正确的结果?
However, when I type $ which psql
nothing is returned. The installation path is /Applications/Postgres93.app
. How do I make $ which psql
show the correct result?
Mac OS X-Mavericks
Mac OS X - Mavericks
PostgreSQL软件包,我不太确定。我去这里下载了它- http://postgresapp.com/
PostgreSQL package, I'm not as sure about. I went here and downloaded it - http://postgresapp.com/
推荐答案
似乎您安装了Heroku的 Postgres.app
,这是一个用于一次性测试和开发的工具。按照Postgres.app文档中的说明,通过将包的内容添加到您的 PATH
中-请参见命令行工具。
It appears that you installed Heroku's Postgres.app
, which is a tool intended for throw-away testing and development. Add the contents of the bundle to your PATH
by following the instructions in the Postgres.app documentation - see "command line tools".
这篇关于在OS X上使用Postgres.app时如何在路径上放置psql?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!