日期:2014-05-16  浏览次数:20536 次

安装RPM过程中缺少依赖项
我要安装XEN 
教程上是这样写的
# wget http://mirrors.ustc.edu.cn/fedora/linux/updates/15/SRPMS/xen-4.1.1-3.fc15.src.rpm  
# rpm -i xen-4.1.1-3.fc15.src.rpm  
# cd ~/rpmbuild/SPECS/  
# rpmbuild -bb xen.spec  
# cd ~/rpmbuild/RPMS/x86_64/  
# rpm -Uvh xen-*4.1.1-*.rpm 
我安装到rpmbuild -bb xen.spec这里时 显示
error: Failed build dependencies:
ocaml is needed by xen-4.1.2-8.el6.x86_64
ocaml-findlib is needed by xen-4.1.2-8.el6.x86_64
我感觉是缺少xen-4.1.2-8.el6.x86_64这个,可是我找便了官方网站也没有找到这个 找了所有的RPM还有.x86_64文件 都没有……
找到了个xen-4.1.2-8.fc16.src.rpm 不知道是不是,不过安装xen-4.1.2-8.fc16.src.rpm这个的时候也显示
error: Failed build dependencies:
ocaml is needed by xen-4.1.2-8.el6.x86_64
ocaml-findlib is needed by xen-4.1.2-8.el6.x86_64
而且我用yum -y install xen-4.1.2-8.el6.x86_64也找不到包 不知道怎么弄了 求帮忙……

------解决方案--------------------
探讨

不推荐使用rpm, 可以使用yum
如 yum search xen 找到合适的xen
然后yum install xen