关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。
我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。
2年前关闭。
Improve this question
我按照以下步骤
显示 -->
PostgreSQL installation complete.
但是如果输入 psql
说——>
Command 'psql' not found, but can be installed with:
apt install postgresql-client-common
Please ask your administrator.
我不想从 apt-get install 安装只想从源代码安装所有东西
最佳答案
默认情况下,PostgreSQL 安装在 /usr/local/pgsql
, 所以你可以输入 /usr/local/pgsql/bin/psql
对于命令行客户端(但请记住,您必须使用 initdb
first` 创建和启动数据库集群)。
如果您不喜欢该位置,请使用 prefix
configure
的选项:
./configure prefix=/dir/where/you/want/postgres
关于linux - 如何在 ubuntu 上从源代码安装 postgres?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59841840/