2017-02-09 198 views
3

包pgbouncer試圖在亞馬遜安裝pgbouncer遇到這樣的:亞馬遜的Linux:沒有

[[email protected] ~]# uname -a 
Linux somehost 4.4.35-33.55.amzn1.x86_64 #1 SMP Tue Dec 6 20:30:04 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 
[[email protected] ~]# yum install pgbouncer 
Loaded plugins: priorities, update-motd, upgrade-helper 
No package pgbouncer available. 
Error: Nothing to do 

走到github - 發現只有編譯版本。用Google搜索,並決定後在The PostgreSQL Global Development Group repo複製以下鏈接

回答

1

解決你的linux發行版本(在我的情況亞馬遜的Linux AMI 2015.03 - x86_64的),然後運行:

rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-ami201503-93-9.3-3.noarch.rpm 
yum install pgbouncer 

的結果是:

Installed: 
    pgbouncer.x86_64 0:1.7.2-6.rhel6