linux - 错误 : You must install at least one postgresql-client-<version> package

标签 linux postgresql ubuntu installation

我正在尝试在 Ubuntu 中安装 PostgreSQL。

我按照以下说明进行操作:

/opt/PostgreSQL/9.0/doc/postgresql/html/installation.html 

似乎已成功安装 PostgreSQL,但作为安装后设置,它要求我执行以下操作:

为此,将以下内容添加到您的 shell 启动文件中,例如 ~/.bash_profile(或 /etc/profile,如果您希望它影响所有用户):

PATH=/usr/local/pgsql/bin:$PATH
export PATH

但我不知道 .bash_profile 在哪里。它说这不是必需的,所以我只是跳过它,当我尝试创建数据库 (createdb mydb) 时,它给了我

错误:

You must install at least one postgresql-client-<version> package.

我不知道那是什么。谁能解释为什么我会收到此错误以及如何安装 postgresql-client?

最佳答案

如果不想指定版本可以用这个

sudo apt-get install postgresql-client

关于linux - 错误 : You must install at least one postgresql-client-<version> package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5301997/

相关文章:

ruby-on-rails - 未找到 Ubuntu 11.10 RVM

linux - 如何在 Linux Shell 脚本中检查组是否存在并添加是否不存在

c - 调用 ld-2.13.so 中的 _dl_open

linux - 在哪里放置 shell 脚本/函数? .bashrc 还是 bin?

sql - Postgres - 如何在带有或的查询中巧合地排序/排名

Apache Ambari 过时的 PID 错误

opengl - 我怎样才能在 Ubuntu 13.04 上找到我的 OpenGL 版本

linux剪贴板在C中读/写

linux - 从扇区中的磁盘读取是原子的吗?

postgresql - Postgres : prevent new user from creating tables, 没有 super 用户