gpt4 book ai didi

postgresql - Ubuntu 18.04 Postgresql Client not installed 错误解决方法

转载 作者:行者123 更新时间:2023-11-29 13:42:47 25 4
gpt4 key购买 nike

在Ubuntu 18.04上安装Postgresql就出现PostgreSQL客户端的错误

Warning: No existing local cluster is suitable as a default target. 
Please see man pg_wrapper(1) how to specify one.
Error: You must install at least one postgresql-client-<version> package

我尝试了StackOverflow和其他论坛上的所有解决方案,但没有成功解决错误

以下是我尝试过的解决方案

1. psql --cluster 10/apps [other arguments]
when I try the first solution it give me the error
Error: Invalid version 10 specified with --cluster


2. psql -p 5432


3. sudo apt-get install postgresql-client-10
when try the third solution it shows the following
postgresql-client-10 is already the newest version (10.5-0ubuntu0.18.04).



4. gedit ~/.bashrc
PATH=/usr/local/pgsql/bin:$PATH
export PATH

谁能说出解决错误的确切解决方案。

最佳答案

您的第三个解决方案就快完成了,确保也运行 sudo apt-get install postgresql-10

关于postgresql - Ubuntu 18.04 Postgresql Client not installed 错误解决方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52795742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com