错误:您必须至少安装一个postgresql-client-< version>。包 [英] Error: You must install at least one postgresql-client-<version> package

查看:882
本文介绍了错误:您必须至少安装一个postgresql-client-< version>。包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to install PostgreSQL in Ubuntu.

我遵循以下指示:

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

似乎已经成功安装了PostgreSQL,但已发布-安装设置,它要求我执行以下操作:

and seem to have successfully installed PostgreSQL but as Post-Installation setup, it asked me to do the following:

要执行此操作,请将以下内容添加到您的Shell启动文件中,例如 〜/ .bash_profile (或 / etc / profile ,如果您希望它影响所有用户):

To do this, add the following to your shell start-up file, such as ~/.bash_profile (or /etc/profile, if you want it to affect all users):

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

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

but I have no idea where .bash_profile is. It said this is not required, so I just skipped it and when I was trying to create database (createdb mydb), it gives me

错误:

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

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

I have no idea what that is. Could anyone explain why I am getting this error and how I can install postgresql-client?

推荐答案

真的现在需要9.0?否则,请使用出色的预编译软件包,例如

Do you really need 9.0 right now? Otherwise use the excellent pre-built packages eg

sudo apt-get install postgresql-8.4 postgresql-client-8.4

是我在Ubuntu 10.10下的功能。

is what I have under Ubuntu 10.10.

如果必须为9.0,最好从Debian软件包源进行重建。

If it has to be 9.0, you are probably best off rebuilding from the Debian package sources.

这篇关于错误:您必须至少安装一个postgresql-client-&lt; version&gt;。包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆