我尝试在我的 CentOS 5.2 机器上运行 yum update 并不断收到此消息:
缺少依赖项:软件包 postgresql-contrib 需要 libossp-uuid.so.15
我单独运行了 yum update postgresql,现在是 8.3.8。我还下载了 uuid-1.6.2 并从源代码构建了它,但仍然得到相同的结果。
yum update -d6 uuid 最后给了我这个:
--> Running transaction check
---> Package uuid.i386 0:1.6.1-3.el5.kb set to be updated
Checking deps for uuid.i386 0-1.6.1-3.el5.kb - u
Checking deps for uuid.i386 0-1.5.1-4.rhel5 - None
postgresql-contrib requires: libossp-uuid.so.15
--> Processing Dependency: libossp-uuid.so.15 for package: postgresql-contrib
Needed Require is not a package name. Looking up: libossp-uuid.so.15
Potential Provider: uuid.i386 0:1.5.1-4.rhel5
Mode is u for provider of libossp-uuid.so.15: uuid.i386 0:1.5.1-4.rhel5
Mode for pkg providing libossp-uuid.so.15: u
Cannot find an update path for dep for: libossp-uuid.so.15
Searching pkgSack for dep: libossp-uuid.so.15
Potential match for libossp-uuid.so.15 from uuid - 1.5.1-4.rhel5.i386
Matched uuid - 1.5.1-4.rhel5.i386 to require for libossp-uuid.so.15
uuid - 1.5.1-4.rhel5.i386 is in providing packages but it is already installed, removing.
--> Finished Dependency Resolution
Dependency Process ending
Error: Missing Dependency: libossp-uuid.so.15 is needed by package postgresql-contrib
我该如何解决这种情况?谢谢
答案1
如果可以使用 postgresql 8.4,我建议尝试 yum install postgresql84。
如果您不需要 contrib RPM(默认情况下不需要),请先将其删除:rpm -e postgresql-contrib,然后执行更新。
HTH,尼尔
答案2
抓住并安装这个家伙:
http://download.fedora.redhat.com/pub/epel/5/i386/uuid-1.5.1-3.el5.i386.rpm
rpm -Uvh uuid-1.5.1-3.el5.i386.rpm
这应该更新贡献 RPM。