postgresql 在 debian lenny 中安装 postgres 9.0

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4290911/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-20 00:24:43  来源:igfitidea点击:

Install postgres 9.0 in debian lenny

postgresqldebian

提问by abubacker

Dear all,
My system has the following distribution details

亲爱的,
我的系统有以下分布细节

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 5.0 (lenny)
Release:    5.0
Codename:   lenny

I need to install postgres 9.0 in this machine , but I cannot find any stable lenny packages for postgres 9.0 , Is there any other way to do this
Any suggestion would be appreciated !

我需要在这台机器上安装 postgres 9.0,但我找不到任何用于 postgres 9.0 的稳定的 lenny 软件包,有没有其他方法可以做到这一点?
任何建议将不胜感激!

回答by Tom Feiner

Thanks to the new debian backports suite, here's how to install PostgreSQL 9.0 on Debian lenny:

感谢新的 debian backports 套件,以下是在 Debian lenny 上安装 PostgreSQL 9.0 的方法:

Add the following to /etc/apt/sources.list:

将以下内容添加到 /etc/apt/sources.list:

deb http://backports.debian.org/debian-backports lenny-backports   main
deb http://backports.debian.org/debian-backports lenny-backports-sloppy main

Then run these 2 commands

然后运行这两个命令

apt-get install -t lenny-backports postgresql-common
apt-get install -t lenny-backports-sloppy postgresql-9.0 postgresql-client-9.0 postgresql-contrib-9.0

Note that this utilizes the new lenny-backports-sloppy backport suite - please read the announcementin order to be aware of the trade offs of using this suite.

请注意,这使用了新的 lenny-backports-sloppy backport 套件 - 请阅读公告以了解使用该套件的权衡。

回答by leonbloy

Installing from source is quite easy:

从源代码安装非常简单:

   Basically: Download postgresql-9.0.1.tar.bz2

    tar xjf postgresql-9.0.1.tar.bz2
    cd postgresql-9.0.1
    ./configure
    make 
    make install

Details here

详情在这里

回答by postgresfun

thanks leonbloy the backport for lenny is no longer supported. use this site to download

感谢 leonbloy 不再支持 lenny 的反向移植。使用本网站下载

http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/

http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/

wget http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-version.tar.bz2

wget http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-version.tar.bz2

Then follow leonbloy's instructions above and read the file INSTALL when you uncompress the file.

然后按照上面 leonbloy 的说明并在解压缩文件时读取文件 INSTALL。