linux 编译 expat,yum升级中expat安装问题的解决

安装httpd的时候,需要升级一下expat,报错如下:

运行 yum install expat 后报错:

--> Finished Dependency Resolution

Error: Missing Dependency: libexpat.so.0 is needed by package adslconfig

Error: Missing Dependency: libexpat.so.0 is needed by package kyum

Error: Missing Dependency: libexpat.so.0 is needed by package netconfiguistatus

Error: Missing Dependency: libexpat.so.0 is needed by package libeasyrpm

Error: Missing Dependency: libexpat.so.0 is needed by package printershareui

Error: Missing Dependency: libexpat.so.0 is needed by package wirelessconfig

Error: Missing Dependency: libexpat.so.0 is needed by package kdmtheme

Error: Missing Dependency: libexpat.so.0 is needed by package openmotif

Error: Missing Dependency: libexpat.so.0 is needed by package moodin

Error: Missing Dependency: libexpat.so.0 is needed by package taskjuggler

Error: Missing Dependency: libexpat.so.0 is needed by package wiredconfig

Error: Missing Dependency: libexpat.so.0 is needed by package rpmtools

Error: Missing Dependency: libexpat.so.0 is needed by package netconfiguimain

Error: Missing Dependency: libexpat.so.0 is needed by package eva

Error: Missing Dependency: libexpat.so.0 is needed by package ksmtheme

Error: Missing Dependency: libexpat.so.0 is needed by package mp3kconv

Error: Missing Dependency: libexpat.so.0 is needed by package llk

Error: Missing Dependency: libexpat.so.0 is needed by package kdenetwork-kget

Error: Missing Dependency: libexpat.so.0 is needed by package openmotif-devel

Error: Missing Dependency: libexpat.so.0 is needed by package kbluetooth

Error: Missing Dependency: libexpat.so.0 is needed by package stardict

Error: Missing Dependency: libexpat.so.0 is needed by package ktorrent

Error: Missing Dependency: libexpat.so.0 is needed by package kdeedu

Error: Missing Dependency: libexpat.so.0 is needed by package PoseidonPPP

Error: Missing Dependency: libexpat.so.0 is needed by package ctrlpanel

Error: Missing Dependency: libexpat.so.0 is needed by package fileshareui

Error: Missing Dependency: libexpat.so.0 is needed by package gd-progs

Error: Missing Dependency: libexpat.so.0 is needed by package kcm_audiosetting

Error: Missing Dependency: libexpat.so.0 is needed by package kio_rar

linux人的cjacker提供了正确的解决方法:

expat2与expat并不兼容,你要安装的expat实际上是升级你系统的expat1。

也就是删除libexpat.so.0换成libexpat.so.1,自然会有很多包提示依赖expat.so.0。

原因是系统可能有点旧了,无法使用0.5.9的升级仓库。

解决方法:

从0.5.9 src仓库下载:

然后编译安装。

rpm -Uvv compat-expat1-1.95.8-4.src.rpm

cd /usr/src/dorado/SPECS

rpmbuild -ba compat-expat1.spec

rpm -Uvv ../RPMS/i686/compat-expat1*.rpm --force --nodeps

然后

rpm -e expat-devel --nodeps

rpm -e expat --nodeps

然后

yum install expat

yum install expat-devel

阅读(7036) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值