linux – 在RHEL 5.6上安装postgresql

当我试图跑
yum install postgresql

我收到以下错误消息:

Transaction Check Error:
  file /usr/lib64/libecpg.so.6.1 from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/lib64/libecpg_compat.so.3.1 from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/lib64/libpgtypes.so.3.1 from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/lib64/libpq.so.5.2 from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/de/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/es/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/fr/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/ko/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/pt_BR/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64
  file /usr/share/locale/zh_CN/LC_MESSAGES/libpq5-8.4.mo from install of postgresql-libs-8.4.4-2PGDG.el5.x86_64 conflicts with file from package postgresql84-libs-8.4.7-1.el5_6.1.x86_64

Error Summary

虽然我知道有一些冲突版本的回购(?),我无法找到解决它的方法.

在此先感谢您的任何建议.

解决方法

为了尝试解释这可能是怎么发生的,看起来在某些时候你将服务器指向Postgresql开发组(PGDG)yum存储库,现在托管在 http://yum.pgrpms.org/.对于那个可能破坏了你的能力的repo有一些变化用它.此外,RedHat现在已将Postgresql 8.4添加到他们自己的软件包集中 – 您以前只能从它们获得8.1 – 所以这可能是引入冲突的原因.

如果您在此处遇到任何问题,PostgreSQL Yum Howto可能会帮助您了解此处涉及的文件所在的位置以及它们的外观.

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...